From c17fb8842659bcddc5cde78e0001d64aef05ab0e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 31 Jan 2021 17:43:34 +1000 Subject: [PATCH] FullscreenUI: Fix controller binding setting instantly --- src/frontend-common/fullscreen_ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/fullscreen_ui.cpp b/src/frontend-common/fullscreen_ui.cpp index e02ba24b4..55896ffff 100644 --- a/src/frontend-common/fullscreen_ui.cpp +++ b/src/frontend-common/fullscreen_ui.cpp @@ -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(hook.value) > 0.5f)) + if (hook.type == ControllerInterface::Hook::Type::Axis && std::abs(std::get(hook.value)) < 0.5f) return ControllerInterface::Hook::CallbackResult::ContinueMonitoring; TinyString value;