-
|
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
NSEventof each touch, and from there the theallTouchesarray ofNSTouches, and then usenormalizedPositionon that.Not something you can do with Winit, I'd suggest you create and manage a
NSViewyourself, and then attach it as a subview of the Winit view.