mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-05-29 00:21:34 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user