Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Controller works in menu, but not in emulators
- This topic has 19 replies, 3 voices, and was last updated 10 years, 8 months ago by toddforester.
-
AuthorPosts
-
03/28/2014 at 23:13 #5817shakyluigiParticipant
Hi.
Sorry for making another post about controller not working, but I’ve been googling and searching for so long, I’m at my wits end.
I have installed RetroPie using these instructions:
http://lifehacker.com/how-to-turn-your-raspberry-pi-into-a-retro-game-console-498561192
The controller works in the menu, but when I enter a game in either the nes or snes emulators (the only systems I have roms for), the controller is unresponsive. I have tried several different solutions, but I’m mostly stumped as I don’t seem to be able to type in the different commands needed, for example this one:
http://raspberrypi.stackexchange.com/questions/1189/joystick-gamepad-not-working-in-retroarch
I have also tried this, where it registers my input both in the “setup” and “test”:
If I try to repeat the process, it seems to forget the earlier input. Or is it possible that it doesn’t save at all?
I am using a snes usb controller I bought of Ebay.
Is there a way to help me, or am I just technically inaduqate?03/29/2014 at 03:28 #5819toddforesterParticipanthi, i had a good laugh when i read “technically inadequate” so thanks for that.
ok so what happens when you do
ls /dev/input/
in the console?it should show js0 and/or js1 amongst other things.
also could you attach your config file located at
/home/pi/RetroPie/configs/all/retroarch.cfg
in your reply so we could have a look at it.for my (original) nes controller i have this in my retroarch.cfg
# If desired, it is possible to override which joypads are being used for player 1 through 8. # First joypad available is 0. input_player1_joypad_index = 1 input_player2_joypad_index = 0 input_player1_a_btn = 3 input_player1_b_btn = 1 input_player1_start_btn = 7 input_player1_select_btn = 6 input_player1_left_axis = -0 input_player1_right_axis = +0 input_player1_up_axis = -1 input_player1_down_axis = +1 input_player2_a_btn = 3 input_player2_b_btn = 1 input_player2_start_btn = 7 input_player2_select_btn = 6 input_player2_left_axis = -0 input_player2_right_axis = +0 input_player2_up_axis = -1 input_player2_down_axis = +1
the part about input_player1_joypad_index = 1 is like that purposely because i wired or read a diagram backwards but if that is the only controller plugged then yours should be
input_player1_joypad_index = 0
i have faith that the awesome members of this forum will be able to help you solve the problem with the right bit of information.
i have attached my retroarch.cfg so you can look at it.
go down to the input section (while looking at the file press ‘ctrl + f’ and in the search type “#### Input”)03/29/2014 at 11:25 #5841shakyluigiParticipantHi.
I’m glad I made you laugh. Makes me happy :)
And thanks for a quick response.
I’ve looked at your .txt file and I’ve tried to copy a few lines (modified to suit my setup). I noticed that my section:
# input_player1_a_btn = 3 # input_player1_b_btn = 1 # input_player1_start_btn = 7 # input_player1_select_btn = 6
Had squares in front of them, while yours didn’t. There were also several other differences in the input section, but you’ll probably find them as I did.
The changes didn’t work, and even at one point I made my RetroPie unable to enter games. Of course I made some backups of the orignial retroarch.cfg file, which is uploaded here as requested.
I entered
ls dev/input/
and it showed js0, among other things, so it seems it can find the joypad.03/29/2014 at 14:24 #5845toddforesterParticipantI’m not able to see your config file. I had to rename mine from .cfg to .txt in order for it to upload properly.
03/29/2014 at 14:31 #5846trimmtrabbParticipantAnything with a number symbol ‘#’ in retroarch.cfg is commented out, remove the # to enable
03/29/2014 at 17:05 #5853shakyluigiParticipanttrimmtrabb: Thanks, I’ll give it a try.
toddforestern: I’m trying to upload it as a txt file now.
03/29/2014 at 17:11 #5855toddforesterParticipantwhich emulators have you tested with?
03/29/2014 at 17:19 #5856trimmtrabbParticipanthow are you editing your retroarch.cfg, via nano or FTP’ing over?
03/29/2014 at 17:36 #5859shakyluigiParticipantI have tried NES and SNES.
I am using CybderDuck. So I guess FTP’ing?
03/29/2014 at 17:49 #5860toddforesterParticipantI was reading elsewhere on the forum that someone was using cyberduck and having problems try editing directly from the pi with
sudo nano /RetroPie/configs/all/retroarch.cfg
then make the changes and press Ctrl + x then y then enter to save and exit.
03/29/2014 at 18:14 #5862shakyluigiParticipantI wrote in that command, and it brought med to a new screen, which had many commands in the bottom, but the entire screen was black.
I’m guessing I should have seen the retroarch.cfg file and be able to edit it there?
03/29/2014 at 18:36 #5863toddforesterParticipantunless I wrote the path incorrectly you should have seen the config files contents. (I’m at work so I can’t check that the path I wrote is correct). another thing to try is to startx and open the file browser and go to where the configs are kept and right click the retro arch.cfg and click to open with leaf pad. edit it and save it from there.
03/29/2014 at 18:52 #5864trimmtrabbParticipantLXDE gui isn’t installed on the latest RetroPie image if that’s what you’re using. The location of retroarch.cfg is /home/pi/RetroPie/configs/all/retroarch.cfg
03/29/2014 at 19:39 #5865toddforesterParticipantoh, so I forgot /home/pi/ my mistake. and that’s weird because I’m sure I grabbed the latest image and I was able to start the x GUI ??? I could be wrong I may have grabbed an outdated version. I updated through the retropie-setup script
03/29/2014 at 19:43 #5866shakyluigiParticipantThank you both! That worked. There is a small “but” here. Almost all the buttons are ok. I can’t get the start and select button to work. I suspect this is just a matter of typing in the correct number. Is there a fast way I can figure out which number corresponds with which button? If not, then I’ll just do a bit of testing and see if I can figure out which one is which.
03/29/2014 at 19:54 #5867trimmtrabbParticipantGlad you’re getting somewhere :-)
You can use jtest to determine buttons, run:
sudo apt-get install joystick
then
jstest /dev/input/js0
03/29/2014 at 19:55 #5868toddforesterParticipanttry
jstest /dev/input/js0
for controller 1 and
jstest /dev/input/js1
for controller 2
i believe it tells you the button numbers there and you can see when you press one it’ll change from off to on.03/29/2014 at 19:57 #5869toddforesterParticipanthaha he beat me to it .
have fun playing.03/29/2014 at 21:45 #5870shakyluigiParticipantGreat! This worked like a charm. I had been trying for about two days to get this to work, and BAM, you guys fix it in 1 work hour (not counting down time ;)).
Thanks again. I can’t really give you something over the Internet, but here’s a funny video from my country:
Enjoy :) And thanks again.
03/30/2014 at 00:20 #5871toddforesterParticipantno problem thats why we are here… well if we arent trying to solve our own broblems and what not. im really glad to have helped.
i hope you stick around the forum so maybe you could help people as we helped you. take a look at my project that i posted here :[url]https://www.petrockblock.com/forums/topic/prepare-yourselves-i-think-its-original-nesberrypi-portable/[/url]
let me know what you think so far.
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.