Page 1 of 1

Retropie: GPIO buttons + Teensy analog stick?

Posted: Mon Sep 18, 2017 10:30 am
by Fredl
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!

Re: Retropie: GPIO buttons + Teensy analog stick?

Posted: Tue Sep 19, 2017 7:20 pm
by woans
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 !

Re: Retropie: GPIO buttons + Teensy analog stick?

Posted: Wed Sep 20, 2017 10:48 am
by Fredl
Thanks for your answer. I finished the project without the analog stick. Still turned out great! :-)

Re: Retropie: GPIO buttons + Teensy analog stick?

Posted: Sun Oct 01, 2017 3:43 am
by Fredl
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

Re: Retropie: GPIO buttons + Teensy analog stick?

Posted: Fri Oct 26, 2018 10:12 am
by gbjack
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?