Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › Atari USB Joystick with EmulationStaion help!
- This topic has 10 replies, 2 voices, and was last updated 10 years, 3 months ago by
trimmtrabb.
-
AuthorPosts
-
05/24/2014 at 15:54 #6969
typh0id
ParticipantI bought a USB Atari Joystick replica and it works fantastically on my PC. Trouble is, I want to use it with RetroPie but when I try to map it in EmulationStation so that it will be recognized as my second controller, I obviously don’t have enough buttons to complete the setup (won’t let me map more than one command to the same button). Is there anyway to configure this manually?
05/24/2014 at 18:40 #6970trimmtrabb
ParticipantHi, have a look at this thread: http://www.raspberrypi.org/forums/viewtopic.php?t=71858&p=518721
05/24/2014 at 21:22 #6971typh0id
ParticipantThere is some very useful information in that thread I will certainly refer to later…The problem right now, however, is that I can’t even get the Atari joystick set up to begin with because it doesn’t have enough buttons to map to all the commands EmulationStation wants me to map.
05/24/2014 at 22:46 #6972trimmtrabb
ParticipantIf there’s not enough buttons I don’t think there’s a way around that
05/25/2014 at 18:47 #6974typh0id
ParticipantThat would indeed be disheartening…But surely there must be some way. I’ve no doubt the controller would work fine, once in a game, I just need to create a config file for EmulationStation that has the info for that particular joystick. Where did EmulationStation pull the information from for the other controllers I’ve configured?
05/25/2014 at 22:45 #6979trimmtrabb
ParticipantDelete es_input.cfg, reboot and connect a usb keyboard and use that to map the controls you don’t have enough buttons for? Obviously you won’t be able to control ES fully with the joystick but I don’t think there’s a way around it as, like you said you cannot map to the same button
05/31/2014 at 00:34 #7093typh0id
Participant[quote=6979]Delete es_input.cfg, reboot and connect a usb keyboard and use that to map the controls you don’t have enough buttons for?[/quote]
I tried this but alas…Once I’ve selected the Atari joystick as my second controller and started mapping the buttons, it doesn’t seem to let me use any other device to map the remaining ones…
Sigh…This is frustrating because I refuse to believe there is no way to make this work…It recognizes the controller just fine…I just need a way to tell it the Atari joystick is the second controller without going through the input setup utility…
05/31/2014 at 01:59 #7097trimmtrabb
ParticipantTry editing es_input.cfg manually, add another input section for the Atari joystick after the keyboard like this:
(/home/pi/.emulationstation/es_input.cfg)
<?xml version="1.0"?> <inputList> <inputConfig type="keyboard"> <input name="a" type="key" id="13" value="1" /> <input name="b" type="key" id="8" value="1" /> <input name="down" type="key" id="274" value="1" /> <input name="left" type="key" id="276" value="1" /> <input name="menu" type="key" id="109" value="1" /> <input name="pagedown" type="key" id="281" value="1" /> <input name="pageup" type="key" id="280" value="1" /> <input name="right" type="key" id="275" value="1" /> <input name="select" type="key" id="108" value="1" /> <input name="up" type="key" id="273" value="1" /> </inputConfig> <inputConfig type="joystick" deviceName="**insert Atari joystick name**"> <input name="down" type="axis" id="1" value="1" /> <input name="left" type="axis" id="0" value="1" /> <input name="right" type="axis" id="0" value="-1" /> <input name="select" type="button" id="2" value="1" /> <input name="up" type="axis" id="1" value="-1" /> </inputConfig> </inputList>
You need to find the device name of the joystick in Linux, use ‘dmesg’
Look through for ‘Product’ and ‘Manufacturer’ relating to the joystick and edit accordingly e.g.deviceName=”Retrolink Atari USB joystick”
I’ve guessed the axis id for the Atari joystick, if its not right run jtest:
sudo apt-get install joystick
then
jstest /dev/input/js0
(it should be js0 if not run ‘ls /dev/input/’)
Same goes for the button (select), i’m guessing you only have one to map?
Hope this works :-)
06/01/2014 at 17:43 #7181trimmtrabb
ParticipantDid it work?
06/01/2014 at 19:30 #7194typh0id
ParticipantI just followed your advice and it completely worked! Thank you x a billion!
06/01/2014 at 19:51 #7195trimmtrabb
ParticipantGreat, glad you sorted it :-)
-
AuthorPosts
- The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.