Controllers not working in-game [Pi 3B+]
-
try changing the input driver from udev to xpad, (only when it says xbox one controller) reboot and try again if that fails to work set it back to udev so that others can see any issues from the original setup. also maybe try and enabling the xpad driver. Manage Packages >> Manage Driver Packages >> Xpad Driver, this should be enabled by default but you never know. sounds silly but have you tried unplugging all controllers but one?
-
Also i found this:
Try assigning your controllers. With all desired gamepads plugged in, from EmulationStation's main menu, go to:"RetroPie" >
"RetroPie Setup" >
"Configuration / Tools" >
"805: configedit" >
"Configure basic libretro emulator options" > At this point, you can either ...
"Configure default options for all libretro emulators" OR
"Configure configure additional options for [EMULATOR NAME HERE]" In both cases ... go to
"Choose joypad order" and set which ever connected gamepads as player 1-4
MIght be that the 2 controllers are assigned the same number.
-
@FuerDrauka The log file is created only after you launch a game. You should enable verbose logging in the Runcommand launch menu, start the game, test your controller and then get the log file.
If you only have 1
.cfg
file in the auto-config folder, then it means you didn't configure your controller in Emulationstation. Did you configure both controllers in Emulationstation as explained in the docs ? -
@mitu said in Controllers not working in-game [Pi 3B+]:
@FuerDrauka The log file is created only after you launch a game. You should enable verbose logging in the Runcommand launch menu, start the game, test your controller and then get the log file.
If you only have 1
.cfg
file in the auto-config folder, then it means you didn't configure your controller in Emulationstation. Did you configure both controllers in Emulationstation as explained in the docs ?Except I DID launch a game. Several. Street Fighter 2 Championship, and I think a Virtua Fighter game, as well as Mr. Driller (PS1 game). They launched just fine, except none of my controllers worked. That's the entire problem I'm having >_> And yes, first time I set up the XB1S controller was after booting with Mouse, Keyboard, and XB1 controller plugged in. First time it didn't work in game I tried some tutorial to clear the existing controller config (removing the config via terminal and using terminal to restart emulation station, which prompted me to add my controller back by holding down a button, just as it did before).
@Pepper - I'll try your suggestions later. It's almost certainly some sort of setting that was changed by that packages update. It may or may not affect people who already played games before updating (which I didn't do, I updated first, then started setting up, adding games, etc.).
But to clarify to anyone confused or wanting a clear idea as to what the problem is and a general breakdown of what I've been doing:
- Got Pi 3 B+, installed Retropie 4.4 for pi version 2/3 on it
- Booted it up with XB1S controller, Keyboard, and Mouse connected
- Controller detected and identified just fine
- Set up Wifi for network and internet access
- Expanded Partition
- Updated Packages (Needed to re-enable auto-login as a result, it's an existing problem that hasn't been fixed for some reason)
- Added Dreamcast emulator via optional packages (I think this is the point at which I did it anyway).
- Added some games via USB
- Enabled SSH and used FTP to add more games and also the Dreamcast BIOS (Used Filezilla)
- Discovered my controller wouldn't work in any game I played, in spite of being detected (showing up on game boot with some green text), forcing me to unplug the Pi since I can't exit games.
- Asked around a bit. Tried using a different controller (PS4 Dualshock, USB connection). Set up fine, just like the XB1S controller
- Doesn't help. Same problem Can navigate EmulationStation just fine, but games don't react, whatever button I press.
- Ask 'wat do?' here.
-
Try this before attempting the previous.
I would unplug your mouse and keyboard clear the config file as you did before, reboot and then reconfigure your xbox 1 controller in emulation station . I suspect the mouse is causing the problems. If after unplugging the mouse and keyboard your controller decides to work try plugging the keyboard into port 3 and xbox controller in port 0 and test to see if your controller still works. continue with the mouse in port 2. The USB ports are assigned as follows:
top left 0
bottom left 1
top right 2
bottom right 3 -
@Pepper said in Controllers not working in-game [Pi 3B+]:
Try this before attempting the previous.
I would unplug your mouse and keyboard clear the config file as you did before, reboot and then reconfigure your xbox 1 controller in emulation station . I suspect the mouse is causing the problems. If after unplugging the mouse and keyboard your controller decides to work try plugging the keyboard into port 3 and xbox controller in port 0 and test to see if your controller still works. continue with the mouse in port 2. The USB ports are assigned as follows:
top left 0
bottom left 1
top right 2
bottom right 3Erm, how do I remove the config file without a keyboard? I kind of need it to do the things you stated. I assume you mean 'remove the config stuff and reboot the Pi this time without the Mouse or Keyboard', yeah?
I'll try that next.
-
so after you removed the config file unplug the keyboard and mouse before attempting to reconfig the controller. Use the ports i mentioned earlier.
-
@Pepper said in Controllers not working in-game [Pi 3B+]:
Also i found this:
Try assigning your controllers. With all desired gamepads plugged in, from EmulationStation's main menu, go to:"RetroPie" >
"RetroPie Setup" >
"Configuration / Tools" >
"805: configedit" >
"Configure basic libretro emulator options" > At this point, you can either ...
"Configure default options for all libretro emulators" OR
"Configure configure additional options for [EMULATOR NAME HERE]" In both cases ... go to
"Choose joypad order" and set which ever connected gamepads as player 1-4
MIght be that the 2 controllers are assigned the same number.
Damn, that looked promising. I was in the config edit for that and everything was marked as 'unset', so I thought that was it. I set the global to my Sony controller for player 1, but no joy.
I also cleared the controller config like you suggested in the more recent post (and moved the controller to the upper-left USB port). I actually did it via FTP, removing the .BAK backup file for good measure. Obviously this didn't help me, as I mentioned the config editing for controller defaults didn't work. I haven't tried changing the configs for the XB1 controller as I've removed those anyway.
Some new information though:
1 - When I went to set up the controller on Retropie boot after removing the configs via FTP I noticed something really weird. It apparently detected two controllers connected. I only had the one Sony controller plugged in, and nothing else (literally just the power, HDMI, and PS4 controller USB cable). Only things I can think of is either a bug, or it's somehow trying to connect to the controller wirelessly. Pretty sure it can't do that? I haven't set up bluetooth on the retropie at all? It didn't do that before, the first time I set it up anyway, I think.
2 - Upon looking carefully at the text that flashes on screen (by unplugging the controller and plugging it back in, doing this a few times) I notice it says that it's 'not configured'. This shows up regardless of what emulator I'm using. I tried it on the PS1 and SNES emulator.
Thanks for your continued help.
This is seriously frustrating, also weird. But mostly frustrating. It really ought to just be working, no?
-
@FuerDrauka
I’m thinking a re-image is in order at this point. I know that’s not what you want to hear. When I got my first raspberry pi I did this numerous times until I got all I wanted dialed. I’ve now 2 pi’s One for a tv and the other in a arcade cabinet. Sorry I cant be more help. Maybe “mitu” can be of help. He knows code errors well. May be able to make a somewhat simple fix. -
@FuerDrauka The DS4 is detected as 2 controllers - see https://retropie.org.uk/forum/topic/17650/dualshock-controllers-on-4-4-with-3b, that's why it appears this way. There's a workaround to disable the 2nd controllers (the motion sensors) in that topic.
There's no need to delete anything. Reset your controllers' configuration from the RetroPie-Setup (Configuration/Tools -> Emulationstation -> Clear/Reset ES input configuration).
Then remove your keyboard and connect only the Xbox controller then configure it in ES's input configuration. Verify that it works, the do the same for the DS4 controller (i.e. configure it and remove all other controller and keyboard). Check that it works.Look in the topic I mentioned (here and create the file with the contents from that topic. Reboot your Pi, then connect both controllers (without keyboard) and verify they work correctly.
-
@Pepper I just ended up doing that. I can play games now. That'll teach me to try to keep things up-to-date >_>
Still having some issues. I'm stuck on the Dreamcast date/time menu. I can't set and confirm the time, etc. It's apparently a long standing issue that hasn't been fixed? Seems a bit dumb to leave it broken like that. I tried using this tutorial: https://www.reddit.com/r/RetroPie/comments/70n9no/tutorial_how_to_map_a_ds4v2_ps4_controller_into/ Yeah, it doesn't help me. It's actually worse now. Before, I could use my Dualshock 4 to change the date/time numbers, but it was only the left analog stick that worked, so I couldn't confirm anything. Now, nothing at all works. I even tried inputting that input edev device stuff to see if that would help, but no joy. When I tried manually changing the inputs with the configuration (brings you to terminal to y/n a button and then you can press a button on the controller), through trial and error I determined it detected my PS4 controller as input device 4 ~_~ I set my global first controller to the sony controller but that didn't help. Unless I can find a simple, straightforward tutorial to get Reicast to actually let me in and play, I'll probably just give it up as a bad job.
Last annoying thing was the A/B and X/Y buttons being swapped in games. It was Retroarch being stupid. Just swapped those button numbers around.
-
@FuerDrauka
I wouldn’t spend too much time with the Dreamcast emulator. You will be disappointed in the way dreamcast games run most of them are unplayable. -
@Pepper said in Controllers not working in-game [Pi 3B+]:
@FuerDrauka
I wouldn’t spend too much time with the Dreamcast emulator. You will be disappointed in the way dreamcast games run most of them are unplayable.Fair enough. I was disappointed with N64. I've only tried three games (Smash Bros, Mario Kart, and Goldeneye), and the only one that ran decent was Mario Kart, but even that had some lag, mostly in the menu transitions. Interestingly, the other two games both had a bit about initializing textures or something, and had a FPS counter, so I guess they're known to run poorly on the emulator and it defaults to having the counter there to monitor performance. The two PS1 games I've tried (Mr. Driller and Tony Hawk PS 2) both worked well.
I did try one NES game and that wouldn't work with my controller.
On the plus side, I've had no real issues with the various Gameboy Colour, GBA, Atari, DOS, SNES, and Genesis games.
So yes, thanks for your patience and suggestions. It was irritating that my attempt to keep the device up to date was the source of my woes, at least the main issue.
-
I updated to version 4.4. from 4.1 aswell and i have the same problem.
Sometimes when a game starts (every emulator) i must wait 10-20 seconds before the controller responds
(for example "press START to start Tetris or Super Mario Land").
But the green text, that appears when i start a game, on the botton left appears and says "Controller Xbox 360 worked".Sometimes the controller doesn't work in a game.
On 4.1 everything was fine.
Thats probably the same problem that FuerDrauka has.I dont belive that we are the only ones with this problem, that must be an update issue and i dont know how to solve this.
I reinstall the xbox driver but nothing helps.
Maybe someone has a solution sometimes.Now i'll create a new partition and reinstall 4.1
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.