mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Release input devices when application is shutdown
If they are released with the deallocation of CInputManager, we might run into global deallocation hell. Also on Windows release all DirectX devices before COM library is closed. ref T391
This commit is contained in:
committed by
Klaus Basan
parent
910b536dee
commit
c42900f959
@@ -129,6 +129,12 @@ namespace BlackCore
|
||||
m_lastCombination = combination;
|
||||
}
|
||||
|
||||
void CInputManager::releaseDevices()
|
||||
{
|
||||
m_keyboard.reset();
|
||||
m_joystick.reset();
|
||||
}
|
||||
|
||||
int CInputManager::bindImpl(const QString &action, QObject *receiver, std::function<void (bool)> function)
|
||||
{
|
||||
static int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user