Retropie: GPIO buttons + Teensy analog stick?

Having trouble with your GBZ build? Ask your questions here!
Post Reply
User avatar
Fredl
Posts: 96
Joined: Sat Jul 29, 2017 4:19 pm
Has thanked: 46 times
Been thanked: 22 times

Retropie: GPIO buttons + Teensy analog stick?

Post by Fredl » Mon Sep 18, 2017 10:30 am

Hello people,

I'm building a GBZ which is almost finished and currently runs RecalBox. The buttons are already soldered to the GPIO pins, but I recently had the desire to add an analog joystick via teensy.. I found that in RecalBox it is not possible to use GPIO and USB controller both for player 1 at the same time....

Is this possible in RetroPie? Because then I would switch over to RetroPie. If so: Is it also possible to configure RetroPie to use the same GPIO pin layout as RecalBox? The thing is built around a custom button-PCB and I really can't resolder the pins or move them to the teensy!

Thanks for your help!
I used to be an adventurer like you, but then I took an arrow in the knee :-O

Link: Downmix your GBZs sound to mono or you're missing half the fidelity!

User avatar
woans
Posts: 15
Joined: Fri Aug 18, 2017 4:52 pm
Been thanked: 9 times

Re: Retropie: GPIO buttons + Teensy analog stick?

Post by woans » Tue Sep 19, 2017 7:20 pm

Unless you're aware of linux driver development, you can't have easily a device that combine GPIO digital input and teensy analog input... either in Retropie nor Recalbox.

However, if you just want to have at least the same GPIO controller on Retropie, it can be done. There's the mk_arcade_joystick project of Github that can be compiled pretty easily (if u're familiar with linux) or I think there is a way to install it from the Retropie-Setup menu. The GPIO layout is configurable during the load of the kernel module.

If you can't resolder easily you can CUT copper lines and hack your board ! This is not easy but it can be done.

Wish you good luck !

User avatar
Fredl
Posts: 96
Joined: Sat Jul 29, 2017 4:19 pm
Has thanked: 46 times
Been thanked: 22 times

Re: Retropie: GPIO buttons + Teensy analog stick?

Post by Fredl » Wed Sep 20, 2017 10:48 am

Thanks for your answer. I finished the project without the analog stick. Still turned out great! :-)
I used to be an adventurer like you, but then I took an arrow in the knee :-O

Link: Downmix your GBZs sound to mono or you're missing half the fidelity!

User avatar
Fredl
Posts: 96
Joined: Sat Jul 29, 2017 4:19 pm
Has thanked: 46 times
Been thanked: 22 times

Re: Retropie: GPIO buttons + Teensy analog stick?

Post by Fredl » Sun Oct 01, 2017 3:43 am

For anyone interested:

I found a solution to make it work with Mupen64Plus at least. You have to disguise the controller as a mouse and enable mouse input in the AutoConfig.ini
I used to be an adventurer like you, but then I took an arrow in the knee :-O

Link: Downmix your GBZs sound to mono or you're missing half the fidelity!

gbjack
Posts: 19
Joined: Sun Oct 14, 2018 9:47 am
Has thanked: 2 times
Been thanked: 1 time

Re: Retropie: GPIO buttons + Teensy analog stick?

Post by gbjack » Fri Oct 26, 2018 10:12 am

Fredl wrote:
Sun Oct 01, 2017 3:43 am
For anyone interested:

I found a solution to make it work with Mupen64Plus at least. You have to disguise the controller as a mouse and enable mouse input in the AutoConfig.ini
So the solution is to use the gpio buttons and add the teensy analog as a mouse input? Does it works with psx too?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest