summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim <MoNTE48@mail.ua>2020-05-31 22:27:50 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2020-06-09 19:35:25 +0200
commit756dc89ede7daa640fe6391ee2c51e78864c0d5c (patch)
treea1916d8c83b66e86ed2dcc261728f539771badc1
parent3cee55f2b4df39fcbf870c2467b51c3d82075874 (diff)
downloadminetest-756dc89ede7daa640fe6391ee2c51e78864c0d5c.tar.gz
minetest-756dc89ede7daa640fe6391ee2c51e78864c0d5c.tar.bz2
minetest-756dc89ede7daa640fe6391ee2c51e78864c0d5c.zip
Fix real keyboard movements on touchscreen devices
-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) &&