-
Is it possible to read the absolute position of fingers within a touchpad's "coordinate space"? I want to create something similar to Apple's Preview app's signature writing feature: when you sign, you do that within the entire rectangle of your touchpad, which is much easier than dragging the cursor like when you're using a mouse. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think you have to somehow get the Not something you can do with Winit, I'd suggest you create and manage a |
Beta Was this translation helpful? Give feedback.
I think you have to somehow get the
NSEvent
of each touch, and from there the theallTouches
array ofNSTouch
es, and then usenormalizedPosition
on that.Not something you can do with Winit, I'd suggest you create and manage a
NSView
yourself, and then attach it as a subview of the Winit view.