HELP NEEDED - How to change Leonardo button box from keyboard emulation to generic joystic buttons

I bought a gaming button box but it is programmed as a keyboard. I need it to simply be numbered buttons. Is there a simple way to do this?

Yes, write or search for code. These boxes assume you can change the software you are trying to operate to use custom key/joystick layouts.

You can GOOGLE : Arduino Leonardo based button box

Look through the posts, and you MAY find complete code.