Detecting pressure on a desktop App

Previously, there were System.PenPressure(), System.PenType and System.PenButtonPushed(n)
The System.PenPressure() never worked with my Wacom Intuos. However, I’m about to buy Xojo 2025 and I realised those System properties are gone.
We now have a PointEvent on a Canvas control, but only on Mobile apps.
Is it now impossible to (try to) read pressure of a pen, inside a desktop app, in Xojo?

Mac, Windows or Linux?

Mac, but eventually also Windows.

So, there is no Xojo native way to detect pressure in desktop apps?

No, but you can check CanvasGesturesMBS class in MBS Xojo Plugins for macOS.

For Windows, you may check WinPointerEventsMBS class.

It seems to have Gestures, but nothing about pressure. I would like to get a pen pressure readout.

On macOS, you get NSEventMBS and there is a “pressure” property.

Great!! As soon as I buy Xojo, I will have to see what MBS classes I will need to buy.

You can try Xojo and MBS without licenses first to make sure it works for you.

1 Like