mirror of https://github.com/encounter/SDL.git
switch: support reading SL/SR buttons on LAYOUT_LEFT and LAYOUT_RIGHT (#23)
This commit is contained in:
parent
2ca320b95a
commit
063a1c9265
|
@ -57,7 +57,8 @@ static const HidControllerKeys pad_mapping[] = {
|
||||||
KEY_PLUS, KEY_MINUS,
|
KEY_PLUS, KEY_MINUS,
|
||||||
KEY_DLEFT, KEY_DUP, KEY_DRIGHT, KEY_DDOWN,
|
KEY_DLEFT, KEY_DUP, KEY_DRIGHT, KEY_DDOWN,
|
||||||
KEY_LSTICK_LEFT, KEY_LSTICK_UP, KEY_LSTICK_RIGHT, KEY_LSTICK_DOWN,
|
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.
|
/* Function to scan the system for joysticks.
|
||||||
|
|
Loading…
Reference in New Issue