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

    Daphne and Joystick

    Scheduled Pinned Locked Moved Help and Support
    daphne joystick
    8 Posts 2 Posters 3.3k 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.
    • D
      darkav
      last edited by darkav

      Re: Daphne joystick control confusion..

      Hi, I have the problem describe in the topic above.
      I'm using ControlBlock.
      My joystick works well with jstest /dev/input/js0, but it doesnt' in Daphne.
      If I run evtest, I get:

      /dev/input/event0:	SINO WEALTH USB Composite Device
      /dev/input/event1:	SINO WEALTH USB Composite Device
      /dev/input/event2:	ControlBlock Arcade Gamepad
      /dev/input/event3:	ControlBlock Arcade Gamepad
      

      So I guess that Daphne assumes that event0 is a Joystick (in this case is not) and try to use it.
      Button mapping (with the "+1" rule) is OK.
      Does anyone succeeded in finding a workaround for that?

      1 Reply Last reply Reply Quote 0
      • D
        darkav
        last edited by

        I have to correct myself.
        the Joystick IS recognized, but the configuration is "wrong", that is LEFT is UP and so on.
        But I guess that the problem is more general, since I have the same behaviour with Prince of Persia port.

        mediamogulM 1 Reply Last reply Reply Quote 0
        • mediamogulM
          mediamogul Global Moderator @darkav
          last edited by mediamogul

          @darkav said in Daphne and Joystick:

          the Joystick IS recognized, but the configuration is "wrong", that is LEFT is UP and so on.

          Unfortunately Daphne is one of a few emulators in RetroPie that tries to automatically grab the joystick without any manual alternative for configuration. The only solution you're likely to run across is key-mapping your joystick using external software such as xboxdrv, Joymap or Linux Joystick Mapper.

          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

          mediamogulM 1 Reply Last reply Reply Quote 0
          • mediamogulM
            mediamogul Global Moderator @mediamogul
            last edited by mediamogul

            @mediamogul

            One other possibility in Daphne that I just thought of, is the ability to map directions to a controller's buttons. I've never tried it personally, but if your joystick identifies as a series of buttons, rather than an axis, I believe you could just remap it right in /opt/retropie/configs/daphne/dapinput.ini.

            RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

            1 Reply Last reply Reply Quote 0
            • D
              darkav
              last edited by

              Actually, after some tests, I realized that when using /dev/input/js0, LR and UD axis are switched.
              So it must be something related with ControlBlock, I'm posting in the Control Block section for this.
              I hope that this can be changed with some configuration. Playing with jscal but with no success up to now.

              1 Reply Last reply Reply Quote 0
              • D
                darkav
                last edited by

                Update: Using jstest-gtk, I setup the joystick "correctly" (I had to switch axis).
                So now in jstest-gtk directions are OK...also saved using jscal-store and all seems OK( using jstest-gtk) even after a reboot.

                BUT I still have the same issue in Daphne and Prince of Persia Port and ScummVM...so basically any emulator that uses the joystick directly in Retropie.
                So I guess that it's something that is realted with Retropie, no Daphne.

                1 Reply Last reply Reply Quote 0
                • D
                  darkav
                  last edited by

                  OK, apparently Daphne uses evdev so changing the mapping of /dev/input/jsx is useless.
                  However, I fixed the problem with a small change in ControlBlock driver (see: https://retropie.org.uk/forum/topic/6936/controlblock-joystick-configuration)

                  mediamogulM 1 Reply Last reply Reply Quote 0
                  • mediamogulM
                    mediamogul Global Moderator @darkav
                    last edited by

                    @darkav

                    Very nice!

                    RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                    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.