libretro / virtualjaguar-libretro

Hard fork of Virtual Jaguar (abandoned project) to Libretro
31 stars 34 forks source link

Numpad are incorrectly mapped in some games. #47

Closed bslenul closed 3 years ago

bslenul commented 3 years ago

Hey!

I noticed that, depending on the game, numpad are incorrectly mapped to controller, it should be:

(7-9, * and # not available on controller, see #39)

But, if you try with Doom for example, there's a useful cheat to test numpad, while ingame hold numpad 1-6 and press Pause (RetroPad Select) and it should warp you to that level number, and you get this:

In Wolfenstein 3D L1, R1 and L2 should be save 1, save 2 and save 3. L1 and R1 work fine, L2 toggle the map however, which should be numpad 5. In Rayman the 50 lives code (5, 1, 5, 2, 5, 3 during the intro) doesn't work at all on controller so numpad 2, 3 and/or 5 are incorrectly mapped.

But in some other games it seems properly mapped, in Syndicate and Air Cars for example it looks correct from what I was able to test.

edit: forget to mention, tested on PC, on both Windows and a Linux VM.

Testsr commented 3 years ago

I changed the button mapping, and inadvertently made L2 activate both 3 and 5, and R2 activate both 4 and 6.

bslenul commented 3 years ago

Ah, that explains the behavior being different between games I guess :D Thanks for the fix, just tried your PR on Doom and Rayman, it works properly now! šŸ‘

Testsr commented 3 years ago

Can you reopen this?

bslenul commented 3 years ago

Sure, anything wrong?

Testsr commented 3 years ago

The pull request that is suppose to fix this issue has not been merged.

bslenul commented 3 years ago

Oh whoops, I usually wait for the merge to close issues... my bad! A bit surprised it wasn't merged yet tho šŸ¤”