Can anyone post the c++ code for joystick in cocos2d-x not the box

cant find the way to implement a joystick in cocos2d-x

A link from the Wiki would take you here:

http://www.cocos2d-x.org/boards/6/topics/2438

I have used it with no problems.

Francis