Arduino Leonardo as GAME CONTROLLER?

I have built a bootleg makey makey with arduino leonardo, but it doesn't work on jnes nintendo emulator.

It works fine when im not trying to play games on the emulator with it.

I use it to play beats with online drum kits and pianos and stuff, but it just doesn't work when i am trying to use it to play a game.

How do I use this to play games on the emulator?
Recognize it as a game controller or what?

please help.

You tell the game that it is a keyboard. I don't see any reason why it wouldn't recognize it. Have you set the keys in the emulator to the ones used in the Leonardo?

Yes, I have told the game.
When I told the game
I even used the arduino to press the value that corresponds to the button, but after i click ok it still doesn't work.

but the game doesn't know im using arduino
for device it says none and no other options