Skip to content

Commit

Permalink
Android: Fix only right strafe working (#10046)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Jun 18, 2020
1 parent a1b444b commit 8ebeed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/touchscreengui.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8ebeed5

Please sign in to comment.