mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
InputManager: Fix exit menu button forwarding to game
Backport of https://github.com/stenzek/duckstation/commit/a7f2ad37de936d68e8881aa6878e91ed213d228a
This commit is contained in:
committed by
Connor McLaughlin
parent
2d127039e1
commit
9187e7eb34
@@ -963,7 +963,7 @@ bool InputManager::ProcessEvent(InputBindingKey key, float value, bool skip_butt
|
||||
// and 0 on release (when the full state changes).
|
||||
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);
|
||||
}
|
||||
else if (binding->num_keys >= min_num_keys)
|
||||
|
||||
Reference in New Issue
Block a user