I’m trying to figure out a way to get stylus/pen input in a monogame windows application. The Win32 C API seems to offer these as system messages, but all the C# information I’ve found seems to be pushing WPF’s InkCanvas.
Anyone have any thoughts on how to get the stylus/pressure/etc. information?
Thanks all - TouchPanel does capture the position input from a stylus - it’s just missing the pressure data. Going to dig a little deeper and see if I can figure out why.
Pressure is not being captured in touch panel events for windows applications (in fact the comments suggest that this is only available on android atm). A windows client could potentially grab the pressure info using Win32’s GetPointerPenInfo call, but the actual device ID required isn’t exposed by the framework.
Win32 also makes a distinction between touch and pen when it comes to pressure, so there’s a bit of extra logic that would have to happen if both were to use the same TouchPanel interface.