aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-06-18 01:43:43 +0100
committerGitHub <noreply@github.com>2020-06-18 01:43:43 +0100
commit8ebeed53ad01986eea0608cb8b1f583aace9528b (patch)
treea46842ebb6dfc38e4fd558610851552dde840481 /src
parenta1b444bb61e6c9dcb0581a8550fd7795a3555cec (diff)
downloadminetest-8ebeed53ad01986eea0608cb8b1f583aace9528b.tar.gz
minetest-8ebeed53ad01986eea0608cb8b1f583aace9528b.tar.bz2
minetest-8ebeed53ad01986eea0608cb8b1f583aace9528b.zip
Android: Fix only right strafe working (#10046)
Diffstat (limited to 'src')
-rw-r--r--src/gui/touchscreengui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/touchscreengui.cpp b/src/gui/touchscreengui.cpp
index 3ee9e4a64..0d64aa618 100644
--- a/src/gui/touchscreengui.cpp
+++ b/src/gui/touchscreengui.cpp
@@ -738,7 +738,7 @@ void TouchScreenGUI::translateEvent(const SEvent &event)
* android would provide this information but Irrlicht guys don't
* wanna design a efficient interface
*/
- id_status toadd;
+ id_status toadd{};
toadd.id = event.TouchInput.ID;
toadd.X = event.TouchInput.X;
toadd.Y = event.TouchInput.Y;
@@ -1043,7 +1043,7 @@ void TouchScreenGUI::applyJoystickStatus()
if (i == 4 && !m_joystick_triggers_special1)
continue;
- SEvent translated;
+ SEvent translated{};
translated.EventType = irr::EET_KEY_INPUT_EVENT;
translated.KeyInput.Key = id2keycode(m_joystick_names[i]);
translated.KeyInput.PressedDown = false;