Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › USB Controller not working with RetroArch
Tagged: usb controller ps2 problems
- This topic has 5 replies, 2 voices, and was last updated 10 years, 4 months ago by Aardvarkm.
-
AuthorPosts
-
07/16/2014 at 22:35 #16378hooleanParticipant
Hello y’all,
I’ve been trying to get RetroPie setup properly for a while now and it is becoming increasingly frustrating.
Firstly, I spent a while on a version (1.x or so), in which I could configure the USB controller for the menu successfully but had no luck with RetroArch; my config appeared to be ignored, it still used the keyboard.
When I updated to the latest version (the one that is live now), I was pleased with many of the improvements. Unfortunately, the controller still does not work with RetroArch despite functioning fully and working with the main menu.
It is a PS2 (NOT a PS3) controller with a USB adapter but works in the exact same format as an USB joypad and I am incredibly confused as to why I need to go to such lengths to get it working with RetroArch.
So, my questions to you smart people:
– What file do I need to edit to get my controller working, now that many files have been moved to /opt?
– What should be in this file for an ordinary USB joypad?Also, please may I ask you to not just link me to a tutorial, as I have tried many and they all seem to be outdated or futile.
07/16/2014 at 23:09 #16388trimmtrabbParticipantIn terminal type:
ls /dev/input/
Note the device number your pad is assigned (should be js0)
Then run:
sudo chown pi /opt/retropie/configs/all/retroarch.cfg cd /opt/retropie/emulators/RetroArch/installdir/bin sudo ./retroarch-joyconfig -j * >> /opt/retropie/configs/all/retroarch.cfg
(replace * with device number of pad)
Follow prompts and you should be good to go
07/16/2014 at 23:22 #16390hooleanParticipantThank you so much, I seriously owe you one. That has saved me so much time and effort <3
07/16/2014 at 23:42 #16395trimmtrabbParticipant:-) Just to add, if you want to further modify retroarch.cfg:
nano /opt/retropie/configs/all/retroarch.cfg
You can determine the buttons on your pad with:
jstest /dev/input/js*
(replace * with device number as above)If you assign a hotkey you can map other functions to buttons already assigned: (replace * with the buttons from jtest etc)
input_enable_hotkey_btn = “*”
input_exit_emulator_btn = “*”
input_save_state_btn = “*”
input_load_state_btn = “*”
input_state_slot_increase_btn = “*”
input_state_slot_decrease_btn =”*”
input_menu_toggle_btn = “*”More info here: https://github.com/libretro/RetroArch/blob/master/retroarch.cfg
07/17/2014 at 00:18 #16403hooleanParticipantThanks! It’s useful to be able to exit the emulator without the keyboard :) Is it possible to make it so that you have to hold two buttons?
Two further questions I have also uncovered from this. Firstly, the Gameboy emulator does not show up on emulation station; only gameboy advance. How can I rectify this? Additionally, on the NES the buttons are weird – there appears to be no A/B button (I have tried all of them) – what my be causing this?
All help greatly appreciated :)
EDIT: nevermind, I’m stupid; both were silly mistakes that I have now resolved
07/17/2014 at 03:56 #16474AardvarkmGuestI’m having a similar problem with NES. It’s registering the A button, but not the B. All other buttons work fine, and it’s only with the NES emulator (This is using a PS3 controller via USB). Please share your solution!
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.