From 18cce4cfc9e4881d1c6ba7667a1d167f58527bb4 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sun, 30 Oct 2016 01:14:50 -0400 Subject: [PATCH] fix OSK hang in Windows because we are getting a down event for keycode 0... --- input/input_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input_keyboard.c b/input/input_keyboard.c index 6fb758cf54..8a0058088d 100644 --- a/input/input_keyboard.c +++ b/input/input_keyboard.c @@ -235,7 +235,7 @@ void input_keyboard_event(bool down, unsigned code, { static bool deferred_wait_keys; - if (code == RETROK_RETURN || code == RETROK_UNKNOWN) + if (code == RETROK_RETURN || (!down && code == RETROK_UNKNOWN)) return_pressed = down; if (deferred_wait_keys)