mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-14 03:30:53 +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) {
|
switch (keyCode) {
|
||||||
case KEYCODE_BUTTON_A:
|
case KEYCODE_BUTTON_A:
|
||||||
case KEYCODE_BUTTON_X:
|
case KEYCODE_BUTTON_X:
|
||||||
|
case KEYCODE_BUTTON_L1:
|
||||||
joydriver_setButton0Pressed(pressed);
|
joydriver_setButton0Pressed(pressed);
|
||||||
return;
|
return;
|
||||||
case KEYCODE_BUTTON_B:
|
case KEYCODE_BUTTON_B:
|
||||||
case KEYCODE_BUTTON_Y:
|
case KEYCODE_BUTTON_Y:
|
||||||
|
case KEYCODE_BUTTON_R1:
|
||||||
joydriver_setButton1Pressed(pressed);
|
joydriver_setButton1Pressed(pressed);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user