fix OSK hang in Windows because we are getting a down event for keycode 0...

This commit is contained in:
Brad Parker 2016-10-30 01:14:50 -04:00
parent b14c3970d1
commit 18cce4cfc9

View File

@ -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)