aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/touchscreengui.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/touchscreengui.cpp b/src/gui/touchscreengui.cpp
index 94e331f72..4df5979e1 100644
--- a/src/gui/touchscreengui.cpp
+++ b/src/gui/touchscreengui.cpp
@@ -1211,7 +1211,12 @@ void TouchScreenGUI::step(float dtime)
}
// joystick
- applyJoystickStatus();
+ for (unsigned int i = 0; i < 4; i++) {
+ if (m_joystick_status[i]) {
+ applyJoystickStatus();
+ break;
+ }
+ }
// if a new placed pointer isn't moved for some time start digging
if ((m_move_id != -1) &&