[Need help translating from Objective C to C++] JoystickClasses

I have attached the Joystick Classes used by Ray Wenderlich in his book “Learning Cocos2D” (Space Viking app).
Can someone help to translate it to C++ ? I’ve tried doing my self but the truth is that I have absolutely no knowledge of Objective C and I’m also a newbie in Cocos2D-x so I have translated one .h file and some part of a .m/.cpp and for me it is not an easy job.
I think it will actually not take much time to do it for someone with a little experience and it will be such a great cocos2d-x extension!

Best wishes,
Adrian


JoystickClasses.zip (11.6 KB)

Take a look at this posted in the forum:
http://www.cocos2d-x.org/boards/6/topics/2438

I used the art from Ray Wenderlich example with the above class and the joystick functionality worked great.

thank you for your joystickclass, it’s useful…