mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
FullscreenUI: Fix controller binding setting instantly
This commit is contained in:
parent
bb2e35b732
commit
c17fb88426
|
@ -772,7 +772,7 @@ void BeginInputBinding(InputBindingType type, const std::string_view& section, c
|
|||
{
|
||||
auto callback = [](const ControllerInterface::Hook& hook) -> ControllerInterface::Hook::CallbackResult {
|
||||
// ignore if axis isn't at least halfway
|
||||
if (hook.type == ControllerInterface::Hook::Type::Axis && std::abs(std::get<float>(hook.value) > 0.5f))
|
||||
if (hook.type == ControllerInterface::Hook::Type::Axis && std::abs(std::get<float>(hook.value)) < 0.5f)
|
||||
return ControllerInterface::Hook::CallbackResult::ContinueMonitoring;
|
||||
|
||||
TinyString value;
|
||||
|
|
Loading…
Reference in a new issue