FullscreenUI: Fix controller binding setting instantly

This commit is contained in:
Connor McLaughlin 2021-01-31 17:43:34 +10:00
parent bb2e35b732
commit c17fb88426
1 changed files with 1 additions and 1 deletions

View File

@ -772,7 +772,7 @@ void BeginInputBinding(InputBindingType type, const std::string_view& section, c
{ {
auto callback = [](const ControllerInterface::Hook& hook) -> ControllerInterface::Hook::CallbackResult { auto callback = [](const ControllerInterface::Hook& hook) -> ControllerInterface::Hook::CallbackResult {
// ignore if axis isn't at least halfway // 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; return ControllerInterface::Hook::CallbackResult::ContinueMonitoring;
TinyString value; TinyString value;