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
This commit is contained in:
Gareth Francis
2018-05-26 12:30:19 +01:00
committed by Colby Klein
parent 23889bd7c8
commit 252e1e7b1f
@@ -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);