Accessing through ssh, Emulation Station is not currently loaded, but Kodi is. Controller is accessible at /dev/input/event0
evtest tests
With xboxdev not loaded
evtest /dev/input/event0
Works, all buttons report as expected
evtest /dev/input/js0
Errors out: evtest: can't get version: Invalid argument
With xboxdev loaded
As xboxdrv not in my $PATH, setting alias xboxdrv="sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv" for sanity.
xboxdrv --evdev /dev/input/event0
xboxdrv own output is one line per button press/axis push, but event output is 0 across the board:
X1: 0 Y1: 0 X2: 0 Y2: 0 du:0 dd:0 dl:0 dr:0 back:0 guide:0 start:0 TL:0 TR:0 A:0 B:0 X:0 Y:0 LB:0 RB:0 LT: 0 RT: 0
Setting to background and silencing the event output with xboxdrv --evdev /dev/input/event0 --silent &, then running… [xboxdrv reports back in this case its event output is available on event 1 and js1]
evtest /dev/input/event0
Errors out, saying that This device is grabbed by another process…
evtest /dev/input/event1
Running, but no button presses are resistered on screen at all – probably to do with no (re)mappings in the xboxdrv command given
evtest /dev/input/js0
Errors out with evtest: can't get version: Invalid argument, as expected
evtest /dev/input/js1
Errors out with evtest: can't get version: Invalid argument, not as expected
xboxdrv --evdev /dev/input/event0 --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y,ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_Z=lt,ABS_RZ=rt --evdev-keymap BTN_A=a,BTN_B=b,BTN_X=x,BTN_Y=y,BTN_TL=lb,BTN_TR=rb,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_SELECT=back,BTN_START=start,BTN_MODE=guide
We now have full event output, so now to push it into the background run evtest again on event1 and js1:
`evtest /dev/input/event1
Runs, displaying all event outputs almost as expected, with the addition of the Mode/Guide button also responding. Almost, as the triggers display ABS_BRAKE and ABS_GAS instead of ABS_Z and ABS_RZ for some reason.
evtest /dev/input/js1
Again, errors out with evtest: can't get version: Invalid argument
Running atari800 – output of /dev/shm/runcommand.log (running Donkey Kong)
Emulator: atari800
Software: atari800
Game/rom: /home/pi/RetroPie/roms/atari800/Donkey Kong (1983).car
CLI: /opt/retropie/emulators/atari800/atari800.sh "/home/pi/RetroPie/roms/atari800/Donkey Kong (1983).car"
Rom: Donkey Kong (1983).car
controller1: event9
Running xboxdrv for atari800
xboxdrv: no process found
xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/
Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com>
Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain
conditions; see the file COPYING for details.
Your Xbox/Xbox360 controller should now be available as:
/dev/input/js1
/dev/input/event10
Press Ctrl-C to quit
Parameters:
Executing: LD_PRELOAD="/opt/retropie/supplementary/sdl12-compat/libSDL-1.2.so.0" /opt/retropie/emulators/atari800/atari800.sh "/home/pi/RetroPie/roms/atari800/Donkey Kong (1983).car"
Unsupported archive: /home/pi/RetroPie/roms/atari800/Donkey Kong (1983).car
Using Atari800 config file: /home/pi/.atari800.cfg
Created by Atari 800 Emulator, Version 5.2.0
Keyboard mapped to emulated joystick 0
Keyboard mapped to emulated joystick 1
Joystick 0 mapped to emulated joystick 0
Joystick 1 mapped to emulated joystick 1
Video Mode: 1920x1080x32 fullscreen, pixel format: BGRA32
OpenGL initialized successfully. Version: 3.1 Mesa 23.2.1-1~bpo12+rpt3
OpenGL Pixel Buffer Objects available.
~
Shutdown complete