(winraw_input) Fix game focus toggle for winraw_input

This commit is contained in:
twinaphex 2018-07-15 14:18:35 +02:00
parent d50850762b
commit 98190294db

View File

@ -403,8 +403,9 @@ static bool winraw_is_pressed(winraw_input_t *wr,
{
const struct retro_keybind *bind = &binds[id];
if (!wr->kbd_mapp_block && (bind->key < RETROK_LAST) && winraw_keyboard_pressed(wr, bind->key))
return true;
if ((bind->key < RETROK_LAST) && winraw_keyboard_pressed(wr, bind->key))
if ((id == RARCH_GAME_FOCUS_TOGGLE) || !wr->kbd_mapp_block)
return true;
if (binds && binds[id].valid)
{
if (winraw_mbutton_pressed(wr, port, bind->mbutton))