Properly initialize and cleanup DirectInput

ref T391
This commit is contained in:
Roland Winklmeier
2018-10-15 12:13:54 +02:00
committed by Klaus Basan
parent 4b3d3bba48
commit 5ee8bbe467
2 changed files with 36 additions and 11 deletions

View File

@@ -140,6 +140,7 @@ namespace BlackInput
const TCHAR *helperWindowClassName = TEXT("HelperWindow");
const TCHAR *helperWindowName = TEXT("JoystickCatcherWindow");
bool m_coInitializeSucceeded = false;
DirectInput8Ptr m_directInput; //!< DirectInput object
QVector<CJoystickDevice *> m_joystickDevices; //!< Joystick devices