Skip to content

fix(mapping): resolve conflicting button assignments for Steam Deck and SDL2 gamepads - #295

Open
pinklightultra wants to merge 1 commit into
djdiskmachine:masterfrom
pinklightultra:fix/gamepad-mappings
Open

pinklightultra wants to merge 1 commit into
djdiskmachine:masterfrom
pinklightultra:fix/gamepad-mappings

Conversation

@pinklightultra

Copy link
Copy Markdown

Fixes #273

Description

Resolves conflicting button bindings in default mapping.xml across desktop targets (X64, DEB, X86, STEAM), which caused unresponsiveness or erratic navigation on Steam Deck and modern SDL2 gamepads.

Summary of Changes:

  1. Remove duplicate conflicting button mappings:
    • In X64, DEB, and X86, but:0:0 was previously mapped to both /event/up and /event/a, and but:0:1 was mapped to both /event/right and /event/b.
    • In STEAM, but:0:0 was mapped to both /event/lshoulder and /event/a, and but:0:2 was mapped to both /event/rshoulder and /event/b.
  2. Standardize SDL2 GameController mappings:
    • D-Pad buttons: but:0:11..14 -> up/down/left/right
    • Left Analog Stick: joy:0:1-/joy:0:1+ and joy:0:0-/joy:0:0+ -> up/down/left/right
    • Face buttons: but:0:0 (A) and but:0:1 (B)
    • Shoulders: but:0:9 (LB) and but:0:10 (RB), plus but:0:4/5 fallback
    • Start / Menu: but:0:6 / but:0:7

How Has This Been Tested?

  • Verified XML syntax and structure across all modified files.
  • Tested on standard SDL2 gamepad / Steam Deck layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] - Steam Deck keymapping is broken

1 participant