mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Fix the touch event filtering to not filter out touch events in the case of mouse control being enabled
Problem reported by Haze, thanks!
This commit is contained in:
+1
-1
@@ -1151,7 +1151,7 @@ void EmuScreen::touch(const TouchInput &touch) {
|
||||
if (!ImGui::GetIO().WantCaptureMouse) {
|
||||
UIScreen::touch(touch);
|
||||
}
|
||||
} else if (g_Config.bMouseControl && !(touch.flags & TOUCH_UP)) {
|
||||
} else if (g_Config.bMouseControl && !(touch.flags & TOUCH_UP) && (touch.flags & TOUCH_MOUSE)) {
|
||||
// don't do anything as the mouse pointer is hidden in this case.
|
||||
// But we let touch-up events through to avoid getting stuck if the user toggles mouse control.
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user