RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Udev/Daphne Joystick Query?

    Scheduled Pinned Locked Moved Help and Support
    script requestusb controlersdaphne joystick
    3 Posts 3 Posters 578 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FlashPC
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Y
        yowl00
        last edited by

        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

        ClydeC 1 Reply Last reply Reply Quote 0
        • ClydeC
          Clyde @yowl00
          last edited by Clyde

          @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.
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          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.