LIJI32 / SameBoy

Game Boy and Game Boy Color emulator written in C
https://sameboy.github.io/
Other
1.68k stars 211 forks source link

Joypad configuration won't read dpad #96

Open Softkandi opened 6 years ago

Softkandi commented 6 years ago

In Joypad -> Configure layout, dpad presses are not detected (it stays at "Press button for Right").

As a workaround, you can press Enter four times to skip the dpad configuration. This doesn't cause any trouble because the dpad works fine in the games.

VladusD commented 5 years ago

This still happens in Sameboy 0.12.1. I should add that I tried all buttons on my wireless Xbox One for Windows gamepad, and in addition to the d-pad, the analog triggers also seem to not be detected by the button layout configuration thing (don't know if it's a huge deal for gameboy, but still a bug I guess).

And the workaround by @AlvaroBurnett works.

lordlouckster commented 3 years ago

Still in 0.13.6.

ishax-kos commented 3 years ago

And in 0.14.3. I would guess that its a lack of hat switch support. Its very common for controllers to compose Dpad information this way, but sometimes its just done as buttons.

TehMiloss commented 1 year ago

Yup, same thing here, but I can't map it either to Analog or to D-Pad with my insideGadgets Wireless Gameboy Controller. After plugging it in and turning on SameBoy - buttons A and B were swapped. I've tried to configure layout via Options, but SameBoy doesn't want to register D-Pad input at all.

With the 0.15.8, it looks like skipping overrides input with blank, which screws up my layout completely - which makes that workaround unusable anymore.

LIJI32 commented 1 year ago

This doesn't seem to be the same issue, which was fixed in 0.15. It appears that the Wireless Gameboy Controller is doing some non-standard HID that is not compatible with SDL's controller library (and most likely JoyKit from the Cocoa frontend as well). I could have a look at it, but it doesn't seem like the controller's protocol is documented anywhere.

LIJI32 commented 1 year ago

Looks like the insideGadgets Wireless Game Boy Controller supports mapping the D-Pad as buttons rather than an analog joystick if you hold the down button and while plugging the receiver in. Can you see if it solves the problem for you?