/dev/input/by-id doesn't exist?
-
Hello,
I am trying to map my controller to keyboard keys for atari800 using xboxdrv, so I need the full id of my controller.
When I run
ls /dev/input/by-id
it says no such file or directory.Isn't it supposed to be there by default? Do I need to install another package?
Any help appreciated.
-
@pjs just type lsusb if it is a usb controller.
-
I forgot to mention it is a bluetooth connected controller. So no ID is given for lsusb.
I think I am supposed to add this command to the emulation.cfg:
atari800 = "sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
--evdev /dev/input/by-id/*
...
...
...
/opt/retropie/emulators/atari800/bin/atari800 %ROM%"
default="atari800"
The asterisk being the full ID of the controller and the ellipses containing various key mappings which I left out here. So I am wondering why I have no such file or directory when I do
ls /dev/input/by-id
in order to obtain the controller ID? Maybe I am misunderstanding the command, and it does not work for bluetooth controllers, only for USB?If that is the case, I will need to figure out the correct command to add to atari800's emulation.cfg when using xboxdrv to map controller buttons to bluetooth controllers.
Thanks again for any help.
-
I found a solution in case anyone else has this problem in the future:
I did
cat /proc/bus/input/devices
to list input devices, which does not give the full ID. But I saw a "Wireless Controller" listed there, so I knew that was my bluetooth controller. I saw it had anH: Handlers
set asevent0
and I recalled being ale to substitute this for the full ID. So, instead of doing--evdev /dev/input/by-id/***
where the ID is still unknown at this time, I was able to do--evdev /dev/input/event0
instead.Now whether or not the button mappings I did are accurate is a whole different problem. Time to go test it out.
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.