X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgui%2Ftouchscreengui.cpp;h=0d64aa61826c400234ca67809a19bbe4c394822d;hb=8e9e76a5076db0042773c6b925698f018a208b29;hp=3ee9e4a64758cc83e156742984d1fc6f6559b4bf;hpb=b9f618746c0f673ea1f851bb2473fb3ca9410093;p=dragonfireclient.git 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;