From 92b06e397e5d18b24584dfaf5869929a9579b314 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 May 2013 21:04:42 +0300 Subject: prevent mouse cursor moving in android in onscreen controls. --- src/touchactions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/touchactions.cpp') diff --git a/src/touchactions.cpp b/src/touchactions.cpp index d969c8bc2..5115ec6c2 100644 --- a/src/touchactions.cpp +++ b/src/touchactions.cpp @@ -104,7 +104,7 @@ static void moveChar(int x, int y) impHandler(padClick) { - moveChar(mouseInput.getTouchX(), mouseInput.getTouchY()); + moveChar(mouseInput.getX(), mouseInput.getY()); padClicked = true; } @@ -113,7 +113,7 @@ impHandler(padEvents) if (mouseInput.getType() == gcn::MouseInput::MOVED) { if (padClicked) - moveChar(mouseInput.getTouchX(), mouseInput.getTouchY()); + moveChar(mouseInput.getX(), mouseInput.getY()); } } -- cgit v1.2.3-60-g2f50