Closed kentosama closed 11 months ago
I also have this issue. I'm trying to map two fightsticks using hat inputs and every time I've launched a game the configuration is replaced with player one keyboard, player two analog (I really need it to be a hat input.)
I have tried the release tag and master branch, same results.
Remapping has yet to be implemented in the sdl/sdl2 ports. Contributors are welcome. I recommend using our libretro port on linux.
I have an issue with libretro, trying to find a way to switch back to standalone emulation on Linux.
Also I was missing the -joy switch, so I was able to solve the 2-player fightstick issue, but the hat mapping is still bothering me. (I've noticed a slight input delay with the left stick analog vs dpad modes on both my 8bitdo and Madcats SFIV sticks. I do not know if this is the control board, driver/OS, or emulators fault. This issue exists for me on FBNeo on Windows and MAME on Windows and Fedora. I'm 90% sure this is my fault some how.)
C++ and I don't usually get along but I'm willing to put something together as a stopgap until someone with better skills can complete this. I've been studying the code to see if this is feasible or not.
To satisfy my needs, and to make this a cleaner contribution, would you be opposed to a extra command line switch that changes the default mapping of the left axis to the hat hits?
(I'm still studying the code and I'm not even at the point of pseudocode yet)
On the command line it would look something like this:
fbneo -fullscreen -joy -mapjoyhat sfiii3u
Internally I'll use the same check and storage for the command line switches and check if -mapjoyhat was set at input mapping time. A simple if statement around the part that sets the axis to set the hat/dpad instead should do the trick.
To satisfy my needs, and to make this a cleaner contribution, would you be opposed to a extra command line switch that changes the default mapping of the left axis to the hat hits?
Let's tag @tmaul about this since the current sdl/sdl2 port is mostly his work, but i believe any contribution is welcome as long as it improves the current implementation.
That sounds good to me
PR #919 addresses this. Simple fix :)
Hello
Does the PR working? For me at least is still overwritten the config file inputs, I used the latest commit. BTW I was surprised that dipswitches are not overwritten.
I made it working with custom mapping making the ini file inmutable with chattr +i . I'm using emuelec odroid n2+
I follow this steps for a xbox 360 pad with usb dongle
I hope this can help as a workaround.
Config file
// FinalBurn Neo v1.0.0.03 --- Config File for orunners (OutRunners (World))
// --- Miscellaneous ----------------------------------------------------------
version 0x100003
analog 0x0100 cpu 0x0100
// --- Inputs -----------------------------------------------------------------
input "P1 Coin" switch 0x4086 input "P1 Start" switch 0x4087 input "P1 Gear Up" switch 0x4085 input "P1 Gear Down" switch 0x4084 input "P1 Music" switch 0x4083 input "P1 Music -" switch 0x4005 input "P1 Music +" switch 0x4004 input "P1 Steering" joyaxis 0 0 input "P1 Accelerate" switch 0x4080 input "P1 Brake" switch 0x4081 input "P2 Coin" switch 0x07 input "P2 Start" switch 0x03 input "P2 Gear Up" switch 0x4080 input "P2 Gear Down" switch 0x4081 input "P2 Music" switch 0x4082 input "P2 Music -" switch 0x4083 input "P2 Music +" switch 0x4084 input "P2 Steering" joyaxis 0 0 input "P2 Accelerate" joyaxis 0 1 input "P2 Brake" joyaxis 0 2 input "Reset" switch 0x3D input "Service Mode" switch 0x3C input "Service 1" switch 0x0A input "Service 2" switch 0x0A input "Service 3" switch 0x0A input "Dip A" constant 0x0F input "Dip B" constant 0x01
macro "System Pause" undefined macro "System FFWD" undefined macro "System Frame" undefined macro "System Load State" undefined macro "System Save State" undefined macro "System UNDO State" undefined macro "P1 Gear Up" undefined macro "P1 Gear Down" undefined macro "P1 Music" undefined macro "P1 Music -" undefined macro "P1 Music +" undefined macro "P2 Gear Up" undefined macro "P2 Gear Down" undefined macro "P2 Music" undefined macro "P2 Music -" undefined macro "P2 Music +" undefined
Hey Kelvfimer,
In my PR, the only time it will attempt to write the ini is if the ini doesn't exist, or if you specify the -joy switch. You shouldn't need to make the file immutable for this to work. (If this isn't the case, please let me know and I will fix it. I'd hate to have put in a bad PR on a great project.)
Your workflow is similar to mine, here's what I've been doing.
fbneo -fullscreen sfiii3u
That's it!
For CPS games I saved a single preset and copy it over before I launch the game.
cp ~/.local/share/fbneo/config/{cps,sfiii3u}.ini && fbneo -fullscreen sfiii3u
IIRC it was implemented in the sdl port sometime last year, so i'll close.
Hello, I have compiled under ArchLinux the latest version available on the repository. I can't change the mapping in the configuration file for each game: