How to generate stylus events and pressure in windows?

I made an application for external tablets that is connected to a PC, and you can write on it with a stylus, and tablet devices send information about the point and pressure to the PC, and the application receives this information via a USB connection, now we have a point, information about events and pressure, I want to know how I can generate and send events and stylus messages to windows with an application created using C #?

I want to simulate mouse and pen events on Windows, I know how I can simulate mouse events with the mouse_event function, but what about the stylus events and its pressure? How can I simulate these events and messages that I have to send to Windows?

In addition, I saw examples of tablet code for a PC, but they all relate to receiving pen events that do not send pen events to windows, please help me or show me some link on how to do this.

Thanks:)

+4
source share

Source: https://habr.com/ru/post/1488369/


All Articles