Reputation: 963
Does the XInput library feature support for handling events from connected keyboards and mice?
I know it supports handling events from xInput compatible controllers but it wasn't clear whether keyboard and mouse input handling is also included. I don't see anything on the MSDN XInput page about supporting it so I don't think so but I want to make sure. So if I wanted to enable control for a piece of software for a user using either an XInput compatible controller or a mouse and keyboard would I need to handle mouse and keyboard events separately using the Windows Message system while handling controller input using XInput?
Thanks for any feedback!
Upvotes: 2
Views: 8751
Reputation: 8824
XInput is only for gamepads, and is deprecated on windows 10 for the new IGamepad interface
For keyboards and mice, you are looking for raw input. It works with windows messaging, but allow you to poll events at a low level, to make use of high DPI devices, higher polling rate and no windows desktop acceleration system.
Upvotes: 1