Pressure pens (wacom etc).. what's the status

Hi, is SDL2 currently capable of reading pressure sensitive pens?

I’m interested in these platforms:-

(i) Apple Pencil on iOS
(ii) the s-pen on the samsung Galaxy Tab S4 on Android
(iii) wacom tablets on a mac (or windows/linux PC)

I see some discussion about touch events vs cursor events … I note that on iOS, “ProCreate” has a neat ability to treat pen and touch interaction differently (e.g. you can make the pen draw whilst single finger touches pick colours or smudge or erase… very handy for quickly alternating between functions)

I’d be interested both in using this in my own code, but also in adapting the program “GrafX2” (which is SDL2 based now) to handle pressure pens (->brush size)

4 Likes