I want to figure out when I get an InputEventMouseButton if that even was sent by a non-pressure sensitive mouse (in which case I immediately treat the pressure as a 1) or a pressure sensitive tablet (in which case I treat the pressure as 0 and then use InputEventMouseMotion to check for changes in the pressure). I need to figure this out when I first the the InputEventMouseButton, because if it is a mouse, there may never be any subsequent InputEventMouseMotion events.
Any way to check if these input events are coming from a pressure sensitive device?
you can track pressure change on mouse clicks without mouse movement by just checking that pressed state of the mouse button event (I didn’t think of that for some reason initially…),
with a tablet, pen pressure change without pen movement actually generate new InputEvenMouseMotion with the new pressure, but with no movement data (ev.relative == Vector2.ZERO) which is not intuitive but it works I guess.
So maybe you only need to use InputEventMouseMotion events to get the pressure without worrying about if it’s pressed or not.