switch: support reading SL/SR buttons on LAYOUT_LEFT and LAYOUT_RIGHT (#23)

This commit is contained in:
rsn8887 2018-11-28 01:50:43 -06:00 committed by Dave Murphy
parent 2ca320b95a
commit 063a1c9265
1 changed files with 2 additions and 1 deletions

View File

@ -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.