[joystick] - fix compilation if HAS_JOYSTICK is undefined