From 063a1c92654ff871fb955b01a07dd84e39790de7 Mon Sep 17 00:00:00 2001 From: rsn8887 Date: Wed, 28 Nov 2018 01:50:43 -0600 Subject: [PATCH] switch: support reading SL/SR buttons on LAYOUT_LEFT and LAYOUT_RIGHT (#23) --- src/joystick/switch/SDL_sysjoystick.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joystick/switch/SDL_sysjoystick.c b/src/joystick/switch/SDL_sysjoystick.c index a57c662a5..21e8229fd 100644 --- a/src/joystick/switch/SDL_sysjoystick.c +++ b/src/joystick/switch/SDL_sysjoystick.c @@ -57,7 +57,8 @@ static const HidControllerKeys pad_mapping[] = { KEY_PLUS, KEY_MINUS, KEY_DLEFT, KEY_DUP, KEY_DRIGHT, KEY_DDOWN, KEY_LSTICK_LEFT, KEY_LSTICK_UP, KEY_LSTICK_RIGHT, KEY_LSTICK_DOWN, - KEY_RSTICK_LEFT, KEY_RSTICK_UP, KEY_RSTICK_RIGHT, KEY_RSTICK_DOWN + KEY_RSTICK_LEFT, KEY_RSTICK_UP, KEY_RSTICK_RIGHT, KEY_RSTICK_DOWN, + KEY_SL_LEFT, KEY_SR_LEFT, KEY_SL_RIGHT, KEY_SR_RIGHT }; /* Function to scan the system for joysticks.