InputManager: Fix exit menu button forwarding to game
This commit is contained in:
parent
0f9a255093
commit
a7f2ad37de
|
@ -1004,7 +1004,7 @@ bool InputManager::ProcessEvent(InputBindingKey key, float value, bool skip_butt
|
||||||
// and 0 on release (when the full state changes).
|
// and 0 on release (when the full state changes).
|
||||||
if (IsAxisHandler(binding->handler))
|
if (IsAxisHandler(binding->handler))
|
||||||
{
|
{
|
||||||
if (value_to_pass >= 0.0f)
|
if (value_to_pass >= 0.0f && (!skip_button_handlers || value_to_pass == 0.0f))
|
||||||
std::get<InputAxisEventHandler>(binding->handler)(value_to_pass);
|
std::get<InputAxisEventHandler>(binding->handler)(value_to_pass);
|
||||||
}
|
}
|
||||||
else if (binding->num_keys >= min_num_keys)
|
else if (binding->num_keys >= min_num_keys)
|
||||||
|
|
Loading…
Reference in New Issue