diff options
author | Matthew Stewart | 2018-02-17 21:38:04 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2018-04-07 09:30:07 +0200 |
commit | c36a5f339555d11353ecbd704e4c812e77d4a0ae (patch) | |
tree | 99d8ba532e44fcfd4bcb0c23b13c3528bd3f96df /backends/platform/ds/arm7/source | |
parent | a43f914abefaae80dd91c496ba5b77b46fb9d8d2 (diff) | |
download | scummvm-rg350-c36a5f339555d11353ecbd704e4c812e77d4a0ae.tar.gz scummvm-rg350-c36a5f339555d11353ecbd704e4c812e77d4a0ae.tar.bz2 scummvm-rg350-c36a5f339555d11353ecbd704e4c812e77d4a0ae.zip |
DS: Fix touch input
Diffstat (limited to 'backends/platform/ds/arm7/source')
-rw-r--r-- | backends/platform/ds/arm7/source/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/ds/arm7/source/main.cpp b/backends/platform/ds/arm7/source/main.cpp index c4a22b8f68..f0765f617a 100644 --- a/backends/platform/ds/arm7/source/main.cpp +++ b/backends/platform/ds/arm7/source/main.cpp @@ -443,11 +443,11 @@ void InterruptTimer3() { x = p.rawx; y = p.rawy; - xpx = p.px; - ypx = p.py; + //xpx = p.px; + //ypx = p.py; -// xpx = ( ((SCREEN_WIDTH -60) * x) / TOUCH_WIDTH ) - TOUCH_OFFSET_X; - // ypx = ( ((SCREEN_HEIGHT-60) * y) / TOUCH_HEIGHT ) - TOUCH_OFFSET_Y; + xpx = ( ((SCREEN_WIDTH -60) * x) / TOUCH_WIDTH ) - TOUCH_OFFSET_X; + ypx = ( ((SCREEN_HEIGHT-60) * y) / TOUCH_HEIGHT ) - TOUCH_OFFSET_Y; // xpx = (IPC->touchX - (int16) TOUCH_CAL_X1) * CNTRL_WIDTH / TOUCH_WIDTH + (int16) (TOUCH_CNTRL_X1 - 8); // ypx = (IPC->touchY - (int16) TOUCH_CAL_Y1) * CNTRL_HEIGHT / TOUCH_HEIGHT + (int16) (TOUCH_CNTRL_Y1 - 8); |