Page 1 of 1

retrogame.cfg problem

Posted: Wed Jul 10, 2019 7:27 pm
by nexus23k
Hi, after retropie update the old retrogame does not work anymore. Now need to edit the retrogame.cfg for my PRS-Tech SNES-Zero.
Use this pinout:
https://www.sudomod.com/forum/viewtopic.php?f=22&t=57
My retrogame.cfg is:

LEFT 16 # Joypad left
RIGHT 27 # Joypad right
UP 15 # Joypad up
DOWN 28 # Joypad down
a 36 # 'A' button
b 31 # 'B' button
x 37 # 'X' button
y 35 # 'Y' button
s 29 # 'Select' button
ENTER 32 # 'Start' button
l 40 # Left shoulder button
r 38 # Right shoulder button
ESC 29 31 # Escape key: hold select + B for a second

But only one button is working. A button is Joypad left and rest, no function. Now need help editing the cfg.
Thanks!

Re: retrogame.cfg problem

Posted: Wed Jul 10, 2019 9:11 pm
by rodocop
Use the BCM/gpio number not the physical pin number. For 'A' use 16, not 36. Do the same for the rest...it will work. Retrogame NEEDS the BCM/gpio number not the physical location number.

Re: retrogame.cfg problem

Posted: Wed Jul 17, 2019 7:26 am
by nexus23k
Thanks! After editing the config. most button`s working now. Only Keypad up & right is without funktion. Use Pin 39 as ground. Somthing is wrong with my config?

LEFT 23 # Joypad left
RIGHT 0 # Joypad right
UP 22 # Joypad up
DOWN 1 # Joypad down
a 16 # 'A' button
b 6 # 'B' button
x 26 # 'X' button
y 19 # 'Y' button
s 5 # 'Select' button
ENTER 12 # 'Start' button
ESC 5 6 # Escape key: hold select + B for a second

Only up and right not working. Don't Know Why. Thanks again!

Re: retrogame.cfg problem

Posted: Wed Jul 17, 2019 8:25 am
by rodocop
nexus23k wrote:
Wed Jul 17, 2019 7:26 am
Thanks! After editing the config. most button`s working now. Only Keypad up & right is without funktion. Use Pin 39 as ground. Somthing is wrong with my config?

LEFT 23 # Joypad left
RIGHT 0 # Joypad right
UP 22 # Joypad up
DOWN 1 # Joypad down
a 16 # 'A' button
b 6 # 'B' button
x 26 # 'X' button
y 19 # 'Y' button
s 5 # 'Select' button
ENTER 12 # 'Start' button
ESC 5 6 # Escape key: hold select + B for a second

Only up and right not working. Don't Know Why. Thanks again!
Hmm, unless you are using another script that might be using those GPIO's? Can you ensure that the soldering to those GPIO's looks good? I assume these buttons worked fine in the past, so it probably isn't an issue with the silicone pads or buttons, but you could always check those.

One other thing to do is to re map the controls in emulation station. See if that helps

Re: retrogame.cfg problem

Posted: Thu Jul 18, 2019 7:15 am
by nexus23k
Thank you! Got it work.
All tested xxx time. Tested second button Pcb, new silicone rubber, min. 10 different layouts and configs... The problem was. The button PCB was stamp to hard silicone pads. This was the mistake. With lighter pressure all working fine now.
It`s not my snes pi with the problem. My selfmade wooden Gameboy takes me that stress. ;)
Geetings and thanks again!