There's a wide variety of User Interaction APIs / technologies, available in Windows 8.1:
WM_MOUSEMOVE
, WM_LBUTTONDOWN
, WM_KEYDOWN
, etc. messages – Marked as legacy.
Can anyone give me a brief overview of these APIs and reveal the following aspects (for each of them):
So I'm looking for native up-to-date low-level full-featured input API, which won't become obsolete in the upcoming Windows 10, or the mixture of those (described above) APIs, closest to this needs.
Can anyone make some kind of comparison table?
The Pointer Input Messages and Notifications seem to be an extension of the well known message cycle to support multitouch devices. You could easily integrate that with standard keyboard messages for a full featured API. As Retired Ninja pointed out, the messaging API is likely to outlast most 'modern' APIs.
I would avoid any fancy new technique that diverges from the standard WinAPI, because these paradigms seem to come and go. Making the low level input handler thin, loose coupled and standardized will help your program stay maintainable.
The thing about Windows messaging API is it gets extended every time a new device or feature is introduced, and that's about as coherent as it gets. Any higher level interface is likely to be incomplete at first, then obsolete, and probably based on WinAPI calls anyway.
I have given up making the WndProc look nice, with nested switches, multiple if...else etc.. Now I keep it in its own source file, where it can do its dirty work of passing values to outside code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With