Skip to content

Read absolute finger positions on touchpad #3706

Answered by madsmtm
realmayus asked this question in Q&A
Discussion options

You must be logged in to vote

I think you have to somehow get the NSEvent of each touch, and from there the the allTouches array of NSTouches, and then use normalizedPosition 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by realmayus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants