pointerIndex out of range Android multitouch

前端 未结 6 1475
天涯浪人
天涯浪人 2020-12-02 18:24

I have a touch event exception that is causing my game to crash on tablets (or more specifically, honeycomb)... My game works fine on my phone and I haven\'t heard of this h

6条回答
  •  青春惊慌失措
    2020-12-02 19:18

    My problem was that it was actually calling event.getX(1) when there wasn't actually two ids. So I made sure that there were two ids with event.getPointerCount() >= 2 and it now works. Maybe you'll have the same luck!

提交回复
热议问题