Skip to content

Commit

Permalink
Fix the last place where we were processing UI input events on the wr…
Browse files Browse the repository at this point in the history
…ong thread
  • Loading branch information
hrydgard committed Nov 11, 2023
1 parent 96cfdba commit d4833b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion UI/EmuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ bool EmuScreen::UnsyncTouch(const TouchInput &touch) {
}

if (root_) {
root_->Touch(touch);
UIScreen::UnsyncTouch(touch);
}
return true;
}
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit d4833b7

Please sign in to comment.