Only block input driver hotkey handling.
Don't block overlay and command input when input_hotkey_enable is set.
This commit is contained in:
parent
7cd24a493e
commit
b74aaa25ce
|
@ -56,13 +56,13 @@
|
|||
|
||||
static inline bool input_key_pressed_func(int key)
|
||||
{
|
||||
if (driver.block_hotkey)
|
||||
return false;
|
||||
bool ret = false;
|
||||
|
||||
bool ret = driver.input->key_pressed(driver.input_data, key);
|
||||
if (!driver.block_hotkey)
|
||||
ret = ret || driver.input->key_pressed(driver.input_data, key);
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
ret |= driver.overlay_state.buttons & (UINT64_C(1) << key);
|
||||
ret = ret || (driver.overlay_state.buttons & (1ULL << key));
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_COMMAND
|
||||
|
|
Loading…
Reference in New Issue