vaclavhanzl / hacktrack

Move windows by four fingers on trackpad, resize by five, and more...
MIT License
4 stars 0 forks source link

Force touch support #2

Open gritn0 opened 2 days ago

gritn0 commented 2 days ago

Hi! Is there any way to read the pressure data from the trackpad and trigger a different function with a force feedback response?

vaclavhanzl commented 2 days ago

Yes, there is. It is used here in the absolute cursor positioning (line 113) by a light one-finger touch (which is switched off by default but works).

Technically, there is quite detailed information. As I remember and understand it, you have: