Skip to content

Commit 756dc89

Browse files
MaksimSmallJoker
Maksim
authored andcommittedJun 9, 2020
Fix real keyboard movements on touchscreen devices
1 parent 3cee55f commit 756dc89

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/gui/touchscreengui.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,12 @@ void TouchScreenGUI::step(float dtime)
12111211
}
12121212

12131213
// joystick
1214-
applyJoystickStatus();
1214+
for (unsigned int i = 0; i < 4; i++) {
1215+
if (m_joystick_status[i]) {
1216+
applyJoystickStatus();
1217+
break;
1218+
}
1219+
}
12151220

12161221
// if a new placed pointer isn't moved for some time start digging
12171222
if ((m_move_id != -1) &&

0 commit comments

Comments
 (0)
Please sign in to comment.