code to test joystick.c functions