From b3be6db3aeefb2ea21a5a5e03cacf8cb339fa988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 27 Sep 2023 17:18:12 +0200 Subject: [PATCH] Remove (probably) unnecessary special case for axis value = 0. --- Common/UI/Screen.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Common/UI/Screen.cpp b/Common/UI/Screen.cpp index 2c954bbce7..7c7a46f8e4 100644 --- a/Common/UI/Screen.cpp +++ b/Common/UI/Screen.cpp @@ -119,15 +119,7 @@ bool ScreenManager::key(const KeyInput &key) { void ScreenManager::axis(const AxisInput &axis) { std::lock_guard guard(inputLock_); - // Send center axis to every screen layer. - // TODO: Do we still need this? - if (axis.value == 0) { - for (auto &layer : stack_) { - layer.screen->UnsyncAxis(axis); - } - } else if (!stack_.empty()) { - stack_.back().screen->UnsyncAxis(axis); - } + stack_.back().screen->UnsyncAxis(axis); } void ScreenManager::deviceLost() {