I use an iPAC2, which emulates a keyboard. I managed to have MAME, NEOGEO, and GENESIS working with my key mapping (see my other posts).
But for piSNES, no way, the 2nd player controls are just ignored. Also tried typing directly on the keyboard the keys for UP, DOWN, etc.
Config: - I use Super Mario Kart. - I changed /home/pi/pimame/emulators/pisnes/snes9x.cfg - I used the key codes shown in /usr/include/SDL/SDL_keysym.h - Keys for 2nd player up,right,down,left are : r g f d
The author can easily check, just plug a keyboard, and see that keys are ignored for player 2 (all ok for player 1).
[Keyboard] # Get codes from /usr/include/SDL/SDL_keysym.h A_1=306 B_1=304 X_1=308 Y_1=122 L_1=32 R_1=120 START_1=50 SELECT_1=54 LEFT_1=276 RIGHT_1=275 UP_1=273 DOWN_1=274 QUIT=27 ACCEL=999
YESSSSS :) it now works with this binary, thanks ! Is this fix something you already posted somewhere already ? If you did it on the source repository, I didn't try to build my self yet, but I could start to do that, if it can help to do the beta-testing.
Again thanks for your fast answer, keep the good work ! Regards / Chris
it's the same build as the one posted in the other thread, I'm guessing that something just went wrong when you built it. It's all good though. I'm hoping that this gets included in one of the updates soon, it seems to keep getting left out.
Actually I found that playing 2 player sessions at Super Mario Kart, the emulator is "resetting" quite often (just like we hit a Reset button : back to Nintendo boot screen). So there are maybe some work in progress somewhere. No problem for 1 player games though...
I didn't create a new post for that, because I can't know if this problem exists in official binary of pisnes, maybe only in this build?
I use gpio (which is keyboard) and usb joystick. I'm wondering if one of your buttons may be hard coded in as a reset key. It's been a while since I looked at that code, so I don't quite remember.