mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-26 15:29:19 +00:00
map L1 and R1 keys to joy buttons
This commit is contained in:
parent
1d248c5e22
commit
13de08f8cb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user