Emulation station does not recognize joystick input
-
Pi Model: Raspberry Pi 2 Model B Rev 1.1
Power Supply used: 5V 2.5A Power supply
RetroPie Version Used: 4.7.1
Built From: Raspberry Pi Imager
Controller used: LED-Wiz+GP I/O controller
Attachment of config files: https://pastebin.com/2qfRSCveHello all,
I am currently trying to setup an arcade game controller for retropie, but the joystick is not being detected by emulationstation. The joystick is similar to an dpad, where the input is either on or off, and no values inbetween. I tried using both jstest and evtest to see if the joystick was being recognized by the system, and the inputs came through so I'm not sure why it wasn't working with emulationstation.
evtest:
# up: Event: time 1621329275.814304, type 3 (EV_ABS), code 1 (ABS_Y), value 255 Event: time 1621329275.814304, -------------- SYN_REPORT ------------ # release up: Event: time 1621329276.300302, type 3 (EV_ABS), code 1 (ABS_Y), value 127 Event: time 1621329276.300302, -------------- SYN_REPORT ------------ # down: Event: time 1621329277.146306, type 3 (EV_ABS), code 1 (ABS_Y), value 0 Event: time 1621329277.146306, -------------- SYN_REPORT ------------ # release down: Event: time 1621329277.590302, type 3 (EV_ABS), code 1 (ABS_Y), value 127 Event: time 1621329277.590302, -------------- SYN_REPORT ------------ # left: Event: time 1621329278.488275, type 3 (EV_ABS), code 0 (ABS_X), value 0 Event: time 1621329278.488275, -------------- SYN_REPORT ------------ # release left: Event: time 1621329278.848309, type 3 (EV_ABS), code 0 (ABS_X), value 127 Event: time 1621329278.848309, -------------- SYN_REPORT ------------ # right: Event: time 1621329279.926286, type 3 (EV_ABS), code 0 (ABS_X), value 255 Event: time 1621329279.926286, -------------- SYN_REPORT ------------ # release right: Event: time 1621329280.264293, type 3 (EV_ABS), code 0 (ABS_X), value 127 Event: time 1621329280.264293, -------------- SYN_REPORT ------------
Since the autoconfiguration was not detecting the joystick, I tried manually configuring .emulationstation/es_input.cfg, both did not work.
configuration 1:
<inputConfig type="joystick" deviceName="GGG LED-Wiz+GP 1" deviceGUID="03000000fafa0000f000000000010000"> <input name="up" 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="down" type="axis" id="1" value="-1"/> <input name="a" type="button" id="2" value="1"/> </inputConfig>
configuration 2:
<inputConfig type="joystick" deviceName="GGG LED-Wiz+GP 1" deviceGUID="03000000fafa0000f000000000010000"> <input name="up" type="axis" id="1" value="255"/> <input name="left" type="axis" id="0" value="0"/> <input name="right" type="axis" id="0" value="255"/> <input name="down" type="axis" id="1" value="0"/> <input name="a" type="button" id="2" value="1"/> </inputConfig>
I also tried following the universal controller calibration and mapping using xboxdrv guide on the RetroPie Docs in order to map the controller to an xbox 360 controller, but I ran into trouble with this as well.
https://retropie.org.uk/docs/Universal-Controller-Calibration-%26-Mapping-Using-xboxdrv/
Emulationstation would recognize it as an xbox 360 controller, but would not recognize any of the button presses once getting onto the configuration screen even though they showed up on evtest as well.Is there anyway to fix this and have emulationstation detect input from the joystick?
-
EmulationStation uses libSDL's joystick subsystem to recognize and work with joystick devices, maybe your device is not detected by libSDL as a gamepad/joystick.
In addition tojstest
/evtest
, installjstest-sdl2
(from https://github.com/Grumbel/sdl-jstest) and see if your device is working with it.
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.