The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.
i.e. not a Uno