AmatCoder / mednaffe

A front-end (GUI) for mednafen emulator
GNU General Public License v3.0
426 stars 35 forks source link

Controller input does not work in gui, works in game #149

Open thesourcehim opened 2 years ago

thesourcehim commented 2 years ago

I tried to reconfigure controls in mednaffe gui (latest git version, linux), but pressing buttons/moving sticks does nothing. Previously configured controls work in game.

[09:50:19] Starting Mednaffe 0.9.2 [09:50:19] Joystick found: ID: 0x0003054c0ce681110008000d00000000 - Sony Interactive Entertainment Wireless Controller [09:50:19] Joystick found: ID: 0x0003054c0ce681110006000000000000 - Sony Interactive Entertainment Wireless Controller Motion Sensors

It seems mednaffe detects my controller, but does not register events.

UPDATE: I was able to configure controls: I clicked inside the button that I wanted to configure, then pressed and held controller button, then moved mouse away from button on gui - pressed button registered correctly. After I did it once, other configurations worked as usual. Don't know what was that.

AmatCoder commented 2 years ago

Ok, let me know if this happens again.

jouven commented 1 year ago

I have the same issue, I managed, once, to configure one button using:

I clicked inside the button that I wanted to configure, then pressed and held controller button, then moved mouse away from button on gui - pressed button registered correctly

But it was a very rare ocurrence because I can't reproduce it again,in the end I can't map my controller. Log when starting mednaffe:

[01:42:34] Starting Mednaffe 0.9.2 [01:42:34] Joystick found: ID: 0x0005054c09cc81000008000d00000000 - Wireless Controller

This is on linux using a ps4 controller, DE is xfce4. EDIT#1: Did some more tests, my xbox one controller (bluetooth) works, the ps4 controller (bluetooth or usb) doesn't, but the controller works on steam or https://gamepad-tester.com/ EDIT#2: Workaround: ignore the issue in Mednaffe, start a game/Mednafen, use "Ctrl + Shift + number" to select an in-game controller and use "Alt + Shift + number" to map the buttons/controls.

rambo919 commented 1 year ago

This is a bug I have noticed across multiple emulators in linux, might be a universal sdl bug