More joystick code.