Switch TouchInputFlags to enum class, fix some minor UI issues

Scroll views now only wheel-scroll if the mouse is hovering over them.
This commit is contained in:
Henrik Rydgård
2025-12-19 11:38:21 +01:00
parent dd112491db
commit 481d0fd18c
84 changed files with 265 additions and 186 deletions
+3 -3
View File
@@ -1319,7 +1319,7 @@ extern "C" jboolean Java_org_ppsspp_ppsspp_NativeApp_mouse(
if (button == 0) {
// It's a pure mouse move.
input.flags = TOUCH_MOUSE | TOUCH_MOVE;
input.flags = TouchInputFlags::MOUSE | TouchInputFlags::MOVE;
input.x = x;
input.y = y;
input.id = 0;
@@ -1329,10 +1329,10 @@ extern "C" jboolean Java_org_ppsspp_ppsspp_NativeApp_mouse(
input.y = y;
switch (action) {
case 1:
input.flags = TOUCH_MOUSE | TOUCH_DOWN;
input.flags = TouchInputFlags::MOUSE | TouchInputFlags::DOWN;
break;
case 2:
input.flags = TOUCH_MOUSE | TOUCH_UP;
input.flags = TouchInputFlags::MOUSE | TouchInputFlags::UP;
break;
}
input.id = 0;