Joystick Library issue

So I’m trying to make a button box to use with different games on my computer. I have started on a small two row 3 column matrix with the keypad library but when compiling the joystick object on line 26 it comes up with this error
exit status 1
'Joystick_' does not name a type; did you mean 'Joystick'?
All of the videos and examples that I have found tell me to do it this way as there is no joystick or axis based input.
Any help would be appreciated.

3.0_keypad_and_joystic_librarys.ino (1.25 KB)

I think this is the Joystick library that matches the sketch:

What "Joystick" library did you install?

i think this is the one that i have

by Giuseppe Martini.
i cant see the new file in the library manager to try it
how would i distinguish between the two

jjpsc:
i think this is the one that i have
GitHub - gmarty2000-ARDUINO/arduino-JOYSTICK
by Giuseppe Martini.

That library has nothing to do with emulating a USB joystick and is the wrong library for your sketch.
Since both libraries use the name "Joystick.h" you will have problems if you install both. I would delete the current library and install the correct one.

thank you so much
i didnt think that the library would have been the issue