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

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);
}