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:
+3
-3
@@ -605,7 +605,7 @@ void FrameDumpTestScreen::update() {
|
||||
|
||||
void TouchTestScreen::touch(const TouchInput &touch) {
|
||||
UIBaseDialogScreen::touch(touch);
|
||||
if (touch.flags & TOUCH_DOWN) {
|
||||
if (touch.flags & TouchInputFlags::DOWN) {
|
||||
bool found = false;
|
||||
for (int i = 0; i < MAX_TOUCH_POINTS; i++) {
|
||||
if (touches_[i].id == touch.id) {
|
||||
@@ -626,7 +626,7 @@ void TouchTestScreen::touch(const TouchInput &touch) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (touch.flags & TOUCH_MOVE) {
|
||||
if (touch.flags & TouchInputFlags::MOVE) {
|
||||
bool found = false;
|
||||
for (int i = 0; i < MAX_TOUCH_POINTS; i++) {
|
||||
if (touches_[i].id == touch.id) {
|
||||
@@ -639,7 +639,7 @@ void TouchTestScreen::touch(const TouchInput &touch) {
|
||||
WARN_LOG(Log::System, "Move with buttons %d without touch down: %d", touch.buttons, touch.id);
|
||||
}
|
||||
}
|
||||
if (touch.flags & TOUCH_UP) {
|
||||
if (touch.flags & TouchInputFlags::UP) {
|
||||
bool found = false;
|
||||
for (int i = 0; i < MAX_TOUCH_POINTS; i++) {
|
||||
if (touches_[i].id == touch.id) {
|
||||
|
||||
Reference in New Issue
Block a user