diff --git a/driver_funcs.h b/driver_funcs.h index ac82b49411..54f42a372c 100644 --- a/driver_funcs.h +++ b/driver_funcs.h @@ -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