Support to add Joystick & Button to Control Input Layer of Game.
- Joystick on the bottom left corner
- Button(s): Jump, Attack,.. on the bottom right corner
- Cocos2d-x v3.17.1
- C++
- Open SneakyInput/proj.ios_mac/SneakyInput.xcodeproj by Xcode
- Enable multitouch for project (https://stackoverflow.com/a/54646945/7019803) by: Open file RootViewController.mm
Change this line
[eaglView setMultipleTouchEnabled:NO];
to
[eaglView setMultipleTouchEnabled:YES];
- And finally RUN
Happy Coding!