Are there any plans to add gamepad support via API to Cocos Creator . I think it would be very beneficial for us developers to have the ability to create games, that use gamepads…Also, having the ability to add Movement Components and applied it to a target node(ex: player ) , and then you can change directions, etc… within the component itself, instead of adding through code ( Keyboard, Touch )…. Hope you understand my explanation…This in effect will increase developing time, and less tedious in adding movement to players via code…God Bless…
i was able to implement support to my android controller by making changes on Cocos2dxGLSurfaceView.java onKeyDown and onKeyUp, and also TouchesJni.cpp. Both are build\jsb-default\frameworks\cocos2d-x\cocos\platform\android, after you create a build.
Im pretty sure you can even support any controller like this. just make sure to make the events pass from java function onKeyDown, through C++ function Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyEvent, and then through javascript. You can map the index on unused keyboard keys.