mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-21 14:49:36 +02:00
try add a5200 second button
This commit is contained in:
@@ -116,11 +116,18 @@ int PLATFORM_Exit(int run_monitor)
|
||||
int PLATFORM_Keyboard(void)
|
||||
{
|
||||
int shiftctrl = 0;
|
||||
|
||||
if (INPUT_key_shift)
|
||||
shiftctrl ^= AKEY_SHFT;
|
||||
|
||||
if (Atari800_machine_type == Atari800_MACHINE_5200 && !UI_is_active) {
|
||||
|
||||
if (MXjoy[0]&0x40) { /* 2nd action button */
|
||||
INPUT_key_shift = 1;
|
||||
}
|
||||
else {
|
||||
INPUT_key_shift = 0;
|
||||
}
|
||||
|
||||
if (Key_Sate[RETROK_F4])
|
||||
return AKEY_5200_START ^ shiftctrl;
|
||||
|
||||
Reference in New Issue
Block a user