How Can I Use My Arduino Leonardo As Joystick

How Can I Use My Arduino Leonardo As Joystick? I cant setup joystick library.

enesucar:
I cant setup joystick library.

What does that mean?