Skip to content

Commit 89c22a1

Browse files
committed
Treat joy ID button values as L3/R3
1 parent 6c12e20 commit 89c22a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/XInput.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ constexpr const XInputMap_Button * getButtonFromEnum(XInputControl ctrl) {
7373
case(BUTTON_Y): return &Map_ButtonY;
7474
case(BUTTON_LB): return &Map_ButtonLB;
7575
case(BUTTON_RB): return &Map_ButtonRB;
76+
case(JOY_LEFT):
7677
case(BUTTON_L3): return &Map_ButtonL3;
78+
case(JOY_RIGHT):
7779
case(BUTTON_R3): return &Map_ButtonR3;
7880
case(BUTTON_START): return &Map_ButtonStart;
7981
case(BUTTON_BACK): return &Map_ButtonBack;

0 commit comments

Comments
 (0)