Fix real keyboard movements on touchscreen devices
authorMaksim <MoNTE48@mail.ua>
Sun, 31 May 2020 20:27:50 +0000 (22:27 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Tue, 9 Jun 2020 17:35:25 +0000 (19:35 +0200)
src/gui/touchscreengui.cpp

index 94e331f72ac1b81fa881060d65ff4fa8acac4739..4df5979e118c96f5382cad5daafd4043825365ba 100644 (file)
@@ -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) &&