Udev/Daphne Joystick Query?
-
Hi guys, this is only a hypothetical question. Is it possible to reset the order of the joysticks on the raspberry pi from the command line without rebooting.
As far as I know udev takes care of the js ordering. Yet emulators like Daphne only uses js0.
So can it be done where the script takes a snapshot of the udev js order, then asks you which usb device to use, then organise the list to have your desired device use the js0 slot and disable the rest. Then on the emulator exit return the udev js order to what it was.
-
Did you ever get a solution for this. I've got the same problem, my joysticks are set up colour coded for Gauntlet, but for Daphne I want to use js1. What I can think of is swapping js0 & 1 connections and then remapping for retroarch/mame
-
@yowl00 Welcome to the forum.
There was a fix to Daphne by @werpu one and a half year ago (see here). It added a command line option
-joynum
followed by the controllers system index number, e.g. 0 or 1 to set the controller being used.It isn't clear to me, though, if the number is the joystick index (
jsX
) or the event index (eventX
). So, here the commands to show both of them:evtest # lists all devices connected to an event
jstest /dev/input/js0 # change 0 to 1, 2, 3 etc. to see the device using it. Exit with Ctrl-c.
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.