diff options
author | Arisotura <thetotalworm@gmail.com> | 2021-08-08 14:45:16 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2021-08-08 14:45:16 +0200 |
commit | bba14b2bb0492e66ee24b9b8e188d79d8a0b9467 (patch) | |
tree | d6ab82d172e404eeb231192a738a13cbc642a974 /src/frontend/qt_sdl | |
parent | 2df6b4fdc3439ea42b043d38f859efb5d4bd4466 (diff) |
fix pissfucking touchscreen (again)
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index ce0ff84..a62a100 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -783,7 +783,7 @@ void ScreenHandler::screenOnMousePress(QMouseEvent* event) int x = event->pos().x(); int y = event->pos().y(); - if (Frontend::GetTouchCoords(x, y)) + if (Frontend::GetTouchCoords(x, y, false)) { touching = true; NDS::TouchScreen(x, y); @@ -814,7 +814,7 @@ void ScreenHandler::screenOnMouseMove(QMouseEvent* event) int x = event->pos().x(); int y = event->pos().y(); - if (Frontend::GetTouchCoords(x, y)) + if (Frontend::GetTouchCoords(x, y, true)) NDS::TouchScreen(x, y); } @@ -830,7 +830,7 @@ void ScreenHandler::screenHandleTablet(QTabletEvent* event) int x = event->x(); int y = event->y(); - if (Frontend::GetTouchCoords(x, y)) + if (Frontend::GetTouchCoords(x, y, event->type()==QEvent::TabletMove)) { touching = true; NDS::TouchScreen(x, y); @@ -861,7 +861,7 @@ void ScreenHandler::screenHandleTouch(QTouchEvent* event) int x = (int)lastPosition.x(); int y = (int)lastPosition.y(); - if (Frontend::GetTouchCoords(x, y)) + if (Frontend::GetTouchCoords(x, y, event->type()==QEvent::TouchUpdate)) { touching = true; NDS::TouchScreen(x, y); |