C#C
C#13mo ago
jakub

How to work with Stylus Input on Windows

Hey, I'm trying to find out how to work with stylus input. Specifically I want to add stylus support to a pre-existing program (emacs). I have searched the API to get stylus input but found:
Windows Ink
https://learn.microsoft.com/en-us/windows/apps/design/input/pen-and-stylus-interactions
RealTimeStylus API
https://learn.microsoft.com/en-us/windows/win32/tablet/realtimestylus-classes-and-interfaces
Since I'm new to windows development, I'm wondering which one to use for my project. This is not strictly a C# question, as the program I'm trying to integrate with supports C code and so I would prefer to use C, however I will use C# (or even C++) if I must. Nevertheless, I'm unfamiliar with the Windows APIs so having multiple APIs to do one thing can be quite overwhelming. Which one is better to use? Also, I'm not sure which ones I can use since I have to extend a pre-existing app rather than creating a new one from scratch. I hope this question is appropriate for this channel.
Build Windows apps that support custom interactions from pen and stylus devices, including digital ink for natural writing and drawing experiences.
This section contains information about the interfaces and classes used in the real time stylus.
Was this page helpful?