mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
rawinput: fix hotplug for keyboard and mouse (#810)
## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change Fix a long-standing issue of hotplug not working for keyboards and mice. The code only registered for HID notifications; we also need to do it for the keyboard GUID and mouse GUID. ## Testing Confirmed that keyboards and mice can be hot unplugged and plugged.
This commit is contained in:
@@ -9,7 +9,9 @@ namespace rawinput {
|
||||
class HotplugManager {
|
||||
private:
|
||||
RawInputManager *ri_mgr;
|
||||
HANDLE hotplug_hid;
|
||||
HANDLE hotplug_hid = nullptr;
|
||||
HANDLE hotplug_keyboard = nullptr;
|
||||
HANDLE hotplug_mouse = nullptr;
|
||||
|
||||
public:
|
||||
HotplugManager(RawInputManager *ri_mgr, HWND hwnd);
|
||||
|
||||
Reference in New Issue
Block a user