Check for valid file handle on gamepads
Windows sometimes keeps a cache of gamepads that are not plugged into the machine. To distinguish between gamepads we can talk to and gamepads we cannot this CL adds a check for a valid file handle. If Windows does not return a valid file handle we do not take up a slot for that gamepad. Bug: 985446 Change-Id: I2bf917bd8989e9238128426af9b804627446c2eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768878 Commit-Queue: James Hollyer <jameshollyer@chromium.org> Reviewed-by:Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#691285}
Showing
Please register or sign in to comment