有没有办法从OSX中获取AIR中的多点触控事件?

时间:2016-02-13 12:38:08

标签: macos flash air

我试图在AIR和AIR中从Mac OSX获取多个触摸事件说它不受支持。

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
trace("supportsTouchEvents:" + Multitouch.supportsTouchEvents);  // false

Mac触控板支持多点触控。有没有办法使这项工作?

1 个答案:

答案 0 :(得分:1)

Mac不支持多点触控事件,但从Mac OS X 10.5.3及更高版本开始支持手势事件(平移,旋转,滑动和缩放)。所以:

Multitouch.inputMode = MultitouchInputMode.GESTURE;
trace("supportsGestureEvents :" + Multitouch.supportsGestureEvents);
trace("supportedGestures :" + Multitouch.supportedGestures);

更多信息: http://www.adobe.com/devnet/flash/articles/multitouch_gestures.html