map L1 and R1 keys to joy buttons

This commit is contained in:
Aaron Culliney 2015-12-19 22:51:41 -08:00
parent 1d248c5e22
commit 13de08f8cb

View File

@ -43,10 +43,12 @@ void android_keycode_to_emulator(int keyCode, int metaState, bool pressed) {
switch (keyCode) {
case KEYCODE_BUTTON_A:
case KEYCODE_BUTTON_X:
case KEYCODE_BUTTON_L1:
joydriver_setButton0Pressed(pressed);
return;
case KEYCODE_BUTTON_B:
case KEYCODE_BUTTON_Y:
case KEYCODE_BUTTON_R1:
joydriver_setButton1Pressed(pressed);
return;
}