From f202336c365e2a54a118335d6479cc8a475ec151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aitor=20G=C3=B3mez?= Date: Sun, 13 Nov 2022 17:45:25 +0100 Subject: [PATCH] pcxt: Overrides Win hotkey in the core (#708) --- user_io.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/user_io.cpp b/user_io.cpp index 8587a30..047cdd3 100644 --- a/user_io.cpp +++ b/user_io.cpp @@ -70,6 +70,7 @@ static char keyboard_leds = 0; static bool caps_status = 0; static bool num_status = 0; static bool scrl_status = 0; +static bool winkey_pressed = 0; static uint16_t sdram_cfg = 0; @@ -3395,6 +3396,19 @@ void user_io_poll() static void send_keycode(unsigned short key, int press) { + if (is_pcxt()) + { + //WIN+... we override this hotkey in the core. + if (key == 125 || key == 126) + { + winkey_pressed = press; + return; + } + if (winkey_pressed) + { + return; + } + } if (is_minimig()) { if (press > 1) return;