From 756dc89ede7daa640fe6391ee2c51e78864c0d5c Mon Sep 17 00:00:00 2001 From: Maksim Date: Sun, 31 May 2020 22:27:50 +0200 Subject: Fix real keyboard movements on touchscreen devices --- src/gui/touchscreengui.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) && -- cgit v1.2.3