Leonardo Gamepad Analog as Digital inputs?

Well I used the other code you suggested and once again I got the 'not declared in scope error for 'Joystick_ Joystick(0x15, JOYSTICK_TYPE_GAMEPAD,'

I give up for some reason it is clearly not going to work for me.