libretro / beetle-psx-libretro

Standalone port/fork of Mednafen PSX to the Libretro API.
GNU General Public License v2.0
309 stars 131 forks source link

Keyboard buttons for analog axes don't work when remapped (via .rmp) #880

Closed akumenon closed 1 year ago

akumenon commented 1 year ago

Description

If I change the controls of either the left or right analog sticks (via core controls, i.e. .rmp) the keyboard controls for them stop working.

Expected behavior

Keyboard controls mapped to analog axes continue to work as usual.

Actual behavior

Keyboard buttons mapped to the analog sticks stop working. Gamepads contine to work as expected.

Steps to reproduce the bug

  1. Run a game via Beetle PSX (HW in my case) that uses analog controls (like dualshock supported games)
  2. Confirm that all keyboard controls work.
  3. Open the Retroarch overlay->Controls->Port 1
  4. Device type to dualshock
  5. Change any left analog and/or right analog mappings.
  6. Check if the controls you cnaged work in-game. (They don't, in my experience)

Bisect results

There are some interesting things that happen when you change an analog control's mapping. Among them, it seems it's counterpart control (- to +, + to -) stops working too, e.g. if I change the left analog Y- control, besides left analog Y- not working on keyboard, left analog Y+ stops working on both gamepad and keyboard! So there's definitely some issue underlying the bug I'm reporting.

Version/Commit

Core options

Nothing out of the ordinary, But here's my opt file just in case.

Environment information

bslenul commented 1 year ago

Seems to be a RetroArch issue, I was able to reproduce with Flycast, Citra and Mupen64Plus-Next cores. Do you mind closing this issue and reposting it in https://github.com/libretro/RetroArch/issues instead?

akumenon commented 1 year ago

Done! Apologies for my ignorance.