mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Fix game focus toggling for DInput driver
This commit is contained in:
parent
311b454a2c
commit
d50850762b
@ -328,8 +328,10 @@ static bool dinput_is_pressed(struct dinput_input *di,
|
|||||||
{
|
{
|
||||||
const struct retro_keybind *bind = &binds[id];
|
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;
|
return true;
|
||||||
|
|
||||||
if (binds && binds[id].valid)
|
if (binds && binds[id].valid)
|
||||||
{
|
{
|
||||||
if (dinput_mbutton_pressed(di, port, bind->mbutton))
|
if (dinput_mbutton_pressed(di, port, bind->mbutton))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user