Get joystick test code working