Fix game focus toggling for DInput driver

This commit is contained in:
twinaphex 2018-07-15 14:17:10 +02:00
parent 311b454a2c
commit d50850762b

View File

@ -328,8 +328,10 @@ static bool dinput_is_pressed(struct dinput_input *di,
{
const struct retro_keybind *bind = &binds[id];
if (!di->blocked && (bind->key < RETROK_LAST) && dinput_keyboard_pressed(di, bind->key))
if ((bind->key < RETROK_LAST) && dinput_keyboard_pressed(di, bind->key))
if ((id == RARCH_GAME_FOCUS_TOGGLE) || !di->blocked)
return true;
if (binds && binds[id].valid)
{
if (dinput_mbutton_pressed(di, port, bind->mbutton))