From 252e1e7b1f5df43a9c6379bf3dee8c3c1deac92f Mon Sep 17 00:00:00 2001 From: Gareth Francis Date: Sat, 26 May 2018 12:30:19 +0100 Subject: [PATCH] Initialise variables to ensure input thread is started (#1696) * Initialise variables to ensure input thread is started m_bShutdown was not initialised. This meant that the input thread would never be started seemingly at random. In my case m_bShutdown was always false when running in fullscreen but not in windowed mode for some reason --- src/arch/InputHandler/InputHandler_Linux_Event.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/arch/InputHandler/InputHandler_Linux_Event.cpp b/src/arch/InputHandler/InputHandler_Linux_Event.cpp index fc3b34a6f4..19eb8571ee 100644 --- a/src/arch/InputHandler/InputHandler_Linux_Event.cpp +++ b/src/arch/InputHandler/InputHandler_Linux_Event.cpp @@ -271,10 +271,11 @@ EventDevice::~EventDevice() } InputHandler_Linux_Event::InputHandler_Linux_Event() + : m_bShutdown(true) + , m_bDevicesChanged(false) + , m_bHaveKeyboard(false) + , m_NextDevice(DEVICE_JOY10) { - m_NextDevice = DEVICE_JOY10; - m_bDevicesChanged = false; - if(LINUXINPUT == NULL) LINUXINPUT = new LinuxInputManager; LINUXINPUT->InitDriver(this);