Original Post
I'm using DirectInput for a game that I am working on. I have it working for keyboard, mouse, and gamepad perfectly. My problem is that if someone doesn't plug the mouse or gamepad in until the game is running the device will not work. I was wondering if there was some c++ function to test when someone's plugged a device into the usb, so I know when to initialize it.