1

I am monitoring HID connections using EnumDevices(..., DIEDFL_ATTACHEDONLY). When I disconnect a game controller it no longer shows up in the callback. However, when I disconnect the keyboard, it still shows up in EnumDevices.

I've looked through the API, but I don't see where else to query if a device is connected.

4

1 回答 1

0

怎么样http://msdn.microsoft.com/en-us/library/windows/desktop/aa363432%28v=vs.85%29.aspx

您可以订阅任何设备通知,例如附加、分离等...

于 2012-02-17T18:59:52.500 回答