mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user