Skip to content

Add default button mappings for modern gamepads (Xbox, PlayStation, Nintendo Switch) - #27

Open
apbluna wants to merge 1 commit into
KScl:masterfrom
apbluna:feature/modern-gamepad-mappings
Open

Add default button mappings for modern gamepads (Xbox, PlayStation, Nintendo Switch)#27
apbluna wants to merge 1 commit into
KScl:masterfrom
apbluna:feature/modern-gamepad-mappings

Conversation

@apbluna

@apbluna apbluna commented Aug 17, 2026

Copy link
Copy Markdown

Summary

Adds built-in default button and axis mappings for modern gamepads (Xbox / XInput, PlayStation DualShock 4 & DualSense, Nintendo Switch Pro Controller, and generic 8+ button PC controllers) when no existing configuration is found in \opentyrian.cfg.

Changes

  • Updated
    eset_joystick_assignments()\ in \src/joystick.c\ to identify common modern controllers by device name or button count.
  • Configured intuitive standard bindings:
    • Movement: D-Pad & Left Analog Stick
    • Fire: Bottom face button (A / Cross / B)
    • Change Fire / Weapon Mode: Top face button (Y / Triangle / X)
    • Left Sidekick: Left face button (X / Square / Y) & Left Bumper / L1 / L
    • Right Sidekick: Right face button (B / Circle / A) & Right Bumper / R1 / R
    • Menu / Pause: Start / Options / + and Back / Share / -
  • Preserved fallback handling for legacy 2-axis/sequential button controllers.

@KScl KScl added the enhancement New feature or request label Aug 18, 2026
@KScl

KScl commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Upstream reference: opentyrian#91

Waiting to see how upstream responds first.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants