Page 1 of 1

Help with coding

Posted: Thu Mar 07, 2019 11:36 am
by kylepiboy
Hey all, I’m trying to edit the coding for RetroPie but I’m at a loss for how to do so. Is there a post in this already? Is there a program I need to download to edit it? Any and all help would be greatly appreciated.

Re: Help with coding

Posted: Thu Mar 07, 2019 11:57 am
by infinitLoop
what exactly do you mean by "edit the coding"? are you wanting to change the retropie program in some way? the source is on github, but you're probably better off asking specific questions in a retropie forum

Re: Help with coding

Posted: Thu Mar 07, 2019 1:12 pm
by kylepiboy
I’m wanting to program the GPIO to additional buttons, but don’t understand how to do that. But I will go to that forum and ask there.

Re: Help with coding

Posted: Thu Mar 07, 2019 1:38 pm
by infinitLoop
kylepiboy wrote:
Thu Mar 07, 2019 1:12 pm
I’m wanting to program the GPIO to additional buttons, but don’t understand how to do that. But I will go to that forum and ask there.
oh, that's not retropie then. it's whatever you are using for the button mapping - retrogame maybe? it's in a text file that you would edit and map the pins to other keyboard keys, or what have you...

retrogame instructions:

https://learn.adafruit.com/retro-gaming ... s-software

tl;dr - you use "sudo nano /boot/retrogame.cfg"

Re: Help with coding

Posted: Thu Mar 07, 2019 1:40 pm
by infinitLoop
unless you mean, like, additional buttons beyond the ones you can map to a controller in emulationstation... then that would be much harder... and i'm not sure why you would need to.

Re: Help with coding

Posted: Thu Mar 07, 2019 3:57 pm
by kylepiboy
I’m not adding additional controls. Just want to wire in a psp joystick and I wanted to hard wire it to my pie with my other controls. Thank you for the link. :D

Re: Help with coding

Posted: Thu Mar 07, 2019 4:03 pm
by rodocop
Pretty sure you can't just add a psp joystick. Pi can't do anything with an analog joystick (gpios are all digital, not analog). You'll need a teensy or something similar.

Re: Help with coding

Posted: Thu Mar 07, 2019 5:04 pm
by kylepiboy
Okay, didn’t know that. I’ll have to pick up a teensy than and look up some how to code it/program it.
Thank you!

Re: Help with coding

Posted: Sat Mar 09, 2019 4:15 pm
by tinkerBOY
kylepiboy wrote:
Thu Mar 07, 2019 5:04 pm
Okay, didn’t know that. I’ll have to pick up a teensy than and look up some how to code it/program it.
Thank you!
A Pro Micro is a better choice than a teensy. It's cheaper and very common.