Comments (11)
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.
@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.
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.
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.
@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.
I'll give it a try :)
from fbneo.
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.
...you know, for example, if player 1 has a sinden or what OP has, and player 2 has a mouse or joy?
from fbneo.
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.
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 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)
- NeoTRIS 4-Player Support HOT 8
- Pleasure Goal - 5 on 5 Mini Soccer HOT 4
- Super Bobble Pop HOT 2
- Soldier Girl Amazon HOT 6
- Neo 2048
- Mouse to Rotary support in knob/spinner games on Mac/iOS/iPadOS HOT 1
- Kid no Hore Hore Daisakusen HOT 1
- Crouching Pony Hidden Dragon (Demo) HOT 7
- Neo-Geo games show the wrong palette values in the Palette Viewer HOT 1
- Bonus Stage Demo (Totologic) HOT 1
- Galaxians (Neo Geo Port) HOT 1
- Pgm sound problems HOT 3
- libretro - UsGames series - Some games freeze during the games.... HOT 19
- Red Earth - Capcom CPS 3 Driver HOT 1
- libretro - Can't use Service button in game Pu·Li·Ru·La (Arcade/Taito) HOT 6
- Boss Hacks Requests - FBNeo
- Where do i put the roms on the raspberry pi port? HOT 2
- Guardians - Denjin Makai II - Boss face glitch HOT 4
- Unable to select between AES hardware with Unibios, or MVS hardware with Unibios HOT 23
- Arcade Punch Out NOT EMULATING CORRECTLY HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbneo.