How to listen for both tap and gestures at the same time in Adobe AIR for iOS?

后端 未结 3 563
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 03:56

I am making an iOS game and I need a detection for both simple tapping and gestures (swipe etc) simultaneously. In AIR, I can only see one setting for the Multitouc

3条回答
  •  长发绾君心
    2021-01-07 04:27

    I'm not quite sure if you need to set TOUCH_POINT for basic tapping. It should work just as well if you've got GESTURE set. You can simulate it with mouse events.

    At any rate, the default AIR gesture support isn't that good anyways, so it might not work that way, hence I'd recommend looking into the Gestouch library. You get much more sophisticated gesture support that work very well. I've been using it in my Flex/AS3 projects for many month now and I'm quite happy with it.

提交回复
热议问题