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:
Roland Winklmeier
2018-10-05 13:32:01 +02:00
committed by Klaus Basan
parent 910b536dee
commit c42900f959
5 changed files with 19 additions and 3 deletions

View File

@@ -87,6 +87,9 @@ namespace BlackCore
//! Triggers a key event manually and calls the registered functions.
void triggerKey(const BlackMisc::Input::CHotkeyCombination &combination, bool isPressed);
//! Releases all devices
void releaseDevices();
//! Creates a native keyboard handler object
static CInputManager *instance();