Leonardo Joystick

Google shows me various solutions doing this on a UNO, and perhaps you could use that as the basis for something on your Leonardo? For example, this guy explained how he adapted the mouse driver library to make a joystick driver library: http://hunt.net.nz/users/darran/weblog/a3599/