From: Maksim Date: Sun, 31 May 2020 20:27:50 +0000 (+0200) Subject: Fix real keyboard movements on touchscreen devices X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=756dc89ede7daa640fe6391ee2c51e78864c0d5c;p=oweals%2Fminetest.git Fix real keyboard movements on touchscreen devices --- 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) &&