DirectX joystick demo code. Models shamelessly stolen from the Homeworld2 game. Illustrates reading and initializing a joystick, then using it with Newton. Code also demonstrates local frame control of torque and force.

Joystick Source Code and Demo