mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Prevent logically dead code warning
This commit is contained in:
parent
c7acb4658b
commit
280eb95b9a
@ -145,7 +145,10 @@ int handle_xkb(int code, int value)
|
||||
if (!syms)
|
||||
return -1;
|
||||
|
||||
xkb_state_update_key(xkb_state, xk_code, value ? XKB_KEY_DOWN : XKB_KEY_UP);
|
||||
if (value > 0)
|
||||
xkb_state_update_key(xkb_state, xk_code, XKB_KEY_DOWN);
|
||||
else
|
||||
xkb_state_update_key(xkb_state, xk_code, XKB_KEY_UP);
|
||||
|
||||
/* Build mod state. */
|
||||
for (i = 0; i < MOD_MAP_SIZE; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user