title: How to create cocoa gesture event
body: <p>I have a problem: how can I create gesture event by code, (rotate, magnify or swipe...), I don't want to use it to zoom or rotate a specific image or something like that, I want to create gesture event like scroll event create by <code>CGEventRef cgEvent = CGEventCreateScrollWheelEvent(NULL, kCGScrollEventUnitLine, wheelCount, yScroll, xScroll);</code></p>
  
  <p><code>CGEventPost(kCGHIDEventTap, cgEvent);</code></p>
  
  <p>Thanks</p>