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 committed 2025-12-19 11:38:56 +01:00
1 parent dd112491db
commit 481d0fd18c
84 files changed
+265 -186

No files matched your search

+3 -3
View File
@@ -116,7 +116,7 @@ void TouchInputHandler::touchUp(int id, float x, float y){
touchevent.id = id;
touchevent.x = x;
touchevent.y = y;
touchevent.flags = TOUCH_UP;
touchevent.flags = TouchInputFlags::UP;
NativeTouch(touchevent);
}
@@ -125,7 +125,7 @@ void TouchInputHandler::touchDown(int id, float x, float y){
touchevent.id = id;
touchevent.x = x;
touchevent.y = y;
touchevent.flags = TOUCH_DOWN;
touchevent.flags = TouchInputFlags::DOWN;
NativeTouch(touchevent);
}
@@ -134,7 +134,7 @@ void TouchInputHandler::touchMove(int id, float x, float y){
touchevent.id = id;
touchevent.x = x;
touchevent.y = y;
touchevent.flags = TOUCH_MOVE;
touchevent.flags = TouchInputFlags::MOVE;
NativeTouch(touchevent);
}