Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to programmatically generate Touchpad gesture event?

I'm working on OS X project and i want to programmatically generate Touchpad gesture event like NSEventTypeSwipe or NSEventTypeRotate So I can rotate/zoom etc on other applications.

I found out how to generate mouse/keyboard events but not touchpad.

Any idea?

like image 937
Gil Avatar asked Dec 21 '12 18:12

Gil


1 Answers

There is no public API for generating those events.

You can find some work on synthesizing those events in this project: calftrail/Touch.

like image 108
rob mayoff Avatar answered Sep 25 '22 11:09

rob mayoff