Giter Site home page Giter Site logo

Comments (11)

barbudreadmon avatar barbudreadmon commented on August 22, 2024

Basically the problem is that we don't use axis returned values "directly" for gun games, so when a stick is held right/left/up/down, the cursor keeps moving in that direction instead of staying at the position the stick is being held.
@dinkc64 I don't know if there is a setting in win32 builds to handle this. FWIW, using BurnGunSetCoords to inject axis values as coordinates seems to work in the libretro port.

from fbneo.

dinkc64 avatar dinkc64 commented on August 22, 2024

@JPman1aco Hi, neat project! Are you using the Windows version of FBNeo?

@barbudreadmon, so basically: lightgun games on the lr port can be configured to use direct axis or go through burn_gun for gamepad/mouse use? Is that what we need to do on the windows ui side?

from fbneo.

barbudreadmon avatar barbudreadmon commented on August 22, 2024

Yes he is using the win32 builds (i talked with him on discord before he posted this issue, took me a while to understand his problem).

FWIW, i pushed this change yesterday to the lr port : libretro@c821b10
So basically, if arcade gun is selected as an input device, i poll the stick, convert it into a width/height position, and send it to the game through BurnGunSetCoords, this is also what i do for lightgun devices (sinden, ...) except the polled "libretro input device" is different. This is what suited best the lr port since it was already using this function for lightguns hence required very few changes/additions, not entirely sure what would be the best for the win32 builds.

from fbneo.

dinkc64 avatar dinkc64 commented on August 22, 2024

So basically for positional mode, we scale the input (0 (left/up) - 0x80 (center) - 0xff (right/down)) to the game's window size and feed that into BurnGunSetCoords()?
or we just send 0 - ff to BurnGunSetCoords()?

from fbneo.

dinkc64 avatar dinkc64 commented on August 22, 2024

@JPman1aco
Hi,
Experimental Positional Mode has been added:
edit your config/fbneo.ini file and find this: bBurnGunPositionalMode, and set it to 1
load fbneo and try a lightgun game, I tested with Lethal Enforcers and it appeared to work fine.

Please let me know how it goes!

@barbudreadmon, maybe you can use this to simplify things on your end?

best regards,

  • dink

from fbneo.

barbudreadmon avatar barbudreadmon commented on August 22, 2024

I'll give it a try :)

from fbneo.

dinkc64 avatar dinkc64 commented on August 22, 2024

barbudreadmon, I realized this might not be good for your use, we'd have to expand it to a per-device thing, which is no problem :)

from fbneo.

dinkc64 avatar dinkc64 commented on August 22, 2024

...you know, for example, if player 1 has a sinden or what OP has, and player 2 has a mouse or joy?

from fbneo.

barbudreadmon avatar barbudreadmon commented on August 22, 2024

Oh, you are right, it'd be a problem if players can't use different kinds of controller.
I might as well stay with my current implementation then, "don't fix what is not broken" as they say.

from fbneo.

dinkc64 avatar dinkc64 commented on August 22, 2024

Well, I think your impl. is kinda hacky, which is why I even mentioned it in the first place. (I'm responsible for a greater number of hacky shit, so, not trying to be an asshole or anything like that)
..plus I would like to expand on fbneo ui's impl. to do similar

from fbneo.

JPman1aco avatar JPman1aco commented on August 22, 2024

@JPman1aco Hi, Experimental Positional Mode has been added: edit your config/fbneo.ini file and find this: bBurnGunPositionalMode, and set it to 1 load fbneo and try a lightgun game, I tested with Lethal Enforcers and it appeared to work fine.

Please let me know how it goes!

@barbudreadmon, maybe you can use this to simplify things on your end?

best regards,

  • dink

Worked perfectly.

Playing with a gun controller is an experience that we no longer find on the streets.

from fbneo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.