changed joystick declaration to use constant