sdl_joypad: webOS Switch Pro builtin remap via hat #0 - #19273
Conversation
|
Verified on webOS with a Nintendo Switch Pro Controller: physical D-pad now navigates the menu (previously only the left stick worked via Analog to Digital). Root cause: sdl2 autoconfig correctly binds DPAD to buttons 11–14, but on this platform |
|
Tested on webOS 6 with a Nintendo Switch Pro Controller: left stick still navigates the menu, and D-pad up/down/left/right now works as well (with the follow-up commit that rebinds missing-hat DPAD mappings and adds the Pro VID/PID autoconfig). |
|
Follow-up: removed the forced |
a4f43fd to
afb5f6c
Compare
Add a webOS-only Switch Pro autoconfig from a working remap (D-pad h0*, Home=11, −/+=9/10, L1/R1=5/6, L2/R2=7/8, L3/R3=12/13). Expose joystick hat 0 on GameController pads so those h0* binds poll correctly.
afb5f6c to
0e45270
Compare
|
@LibretroAdmin may I ask, what happened with joysticks/sdl why all buttons has new codes? |
Summary
h0up/down/left/rightsdl_joypadchange: expose hat 0 and read the real joystick hat (stock GC path calledget_button(hat)and setnum_hats = 0, soh0*binds never worked).Test plan
*Switch*Pro*.cfg