From d4833b72b1c396bab83b1d7533d562f9b0cc6d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 11 Nov 2023 11:21:36 +0100 Subject: [PATCH] Fix the last place where we were processing UI input events on the wrong thread --- UI/EmuScreen.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index f1c7371af590..a0462d173146 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -580,7 +580,7 @@ bool EmuScreen::UnsyncTouch(const TouchInput &touch) { } if (root_) { - root_->Touch(touch); + UIScreen::UnsyncTouch(touch); } return true; } @@ -870,6 +870,11 @@ bool EmuScreen::key(const KeyInput &key) { void EmuScreen::UnsyncAxis(const AxisInput *axes, size_t count) { System_Notify(SystemNotification::ACTIVITY); + + if (UI::IsFocusMovementEnabled()) { + return UIScreen::UnsyncAxis(axes, count); + } + return controlMapper_.Axis(axes, count); }