Two controllers in one Leonardo

Having trouble with your GBZ build? Ask your questions here!
Post Reply
User avatar
Roller Toaster
Posts: 59
Joined: Thu Jun 01, 2017 7:15 pm
Location: McLean, VA
Has thanked: 45 times
Been thanked: 20 times

Two controllers in one Leonardo

Post by Roller Toaster » Sun Jul 23, 2017 9:44 pm

Is there a way to make one of these output as two USB controllers to a raspberry pi? I was thinking of hooking up a couple of joysticks and buttons and making a bartop arcade, but I'd like to only use one Leonardo Pro Micro because it has enough pins.

User avatar
RetroRocket
Posts: 146
Joined: Sun Apr 09, 2017 8:53 pm
Location: Seattle
Has thanked: 60 times
Been thanked: 64 times
Contact:

Re: Two controllers in one Leonardo

Post by RetroRocket » Sun Jul 23, 2017 9:54 pm

I imagine you could run the input as keyboard buttons and map those alphanumeric values to button controls. Someone more experienced with programming should jump in here, but you could program say WASD controls and Numpad controls in arduino, then in the emulator settings, set those groups of inputs as player one and player two.

User avatar
moooarcuuuus
Posts: 232
Joined: Tue Jul 04, 2017 1:28 am
Has thanked: 2 times
Been thanked: 94 times

Re: Two controllers in one Leonardo

Post by moooarcuuuus » Sun Jul 23, 2017 11:23 pm

Roller Toaster wrote:
Sun Jul 23, 2017 9:44 pm
Is there a way to make one of these output as two USB controllers to a raspberry pi? I was thinking of hooking up a couple of joysticks and buttons and making a bartop arcade, but I'd like to only use one Leonardo Pro Micro because it has enough pins.
It works. https://www.arduino.cc/en/Reference/MouseKeyboard
Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep, Eat, Sleep... Game Over

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest