From 57f47ccb5e9ef3fb2c822d7e848c9056aa924aa9 Mon Sep 17 00:00:00 2001 From: Not6 Date: Sun, 5 Mar 2017 15:09:37 +0100 Subject: [PATCH] try add a5200 second button --- libretro/platform.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libretro/platform.c b/libretro/platform.c index 918491a..e6ea797 100644 --- a/libretro/platform.c +++ b/libretro/platform.c @@ -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;