Hi,
I’m working on cocos framework 3.9 . Using C++, and build for Android platform. I’m doing my multi-touch testing reference this tutorial : http://www.gamefromscratch.com/post/2014/10/03/Cocos2d-x-Tutorial-Series-Handling-Touch-and-Mouse-Input.aspx, but it’s not work, the touches array size is always 1.
I searched and read too many topics that on android, multi-touch is default.I already used setTouchEnabled(true), setTouchMode(Touch::DispatchMode::ALL_AT_ONCE) but still not working. Please help me to fix this issue.
My tools version : android-ndk-r9d, jdk1.8.0, apache-ant-1.9.6, cocos framework 3.9, OS: windows 8.1.
I attached my class following this topic.
Thanks.
HelloWorldScene.cpp (1.7 KB)
HelloWorldScene.h (860 Bytes)
I’m not sure, but I guess on touches end you only receive 1 touch. Please try touches begin and moved and see it they’re too getting only 1 touch. Also try out this tutorial: https://www.youtube.com/watch?v=b3d6Dbx1HNM
I’ve arleady do refer to that tutorial link, but still not work. Btw, thanks your support. Anyone same issue? Please help.
Solved! Refer to sample in framework. It’s working. Please help to close this topic.