input: only unregister devices if there is no other handler registered

Also center mouse if a new device was added
This commit is contained in:
Megamouse 2024-05-23 23:58:54 +02:00
parent 657acc90e4
commit 21c03b74b6
3 changed files with 48 additions and 27 deletions

View file

@ -99,6 +99,7 @@ private:
#ifdef _WIN32
void register_raw_input_devices();
void unregister_raw_input_devices();
bool m_registered_raw_input_devices = false;
#endif