Arduino Leonardo - HID with two Gamepad ?

Hey there,

my name is Dominik and i'm new at this forum.
My current project is to build a game console with a raspbery pi. You can play NES / SNES / GBA and PSX
with it and watch movies with xbmc.

Now to my problem:

I'm use my arduino leonardo to controll one NES-Controller. This works very good, but i want to use two NES-Controller
with one Arduino.

My Settings:

I wrote this little program (GitHub - DominikBlunck/NES-USB-Interface-Arduino-Leonardo: USB-Interface with the Arduino Leonardo) to control
one NES-Controller.

The "HID.cpp" & "USBAPI.h" are from this site (http://www.imaginaryindustries.com/blog/?p=80&cpage=1#comment-1607).

But if i try to expand this code to use two controllers, i will only see one gamepad...

Hope anyone can help me ....