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

    joystick has only axis 4 and axis 5 how to configure for linapple?

    Scheduled Pinned Locked Moved Help and Support
    linappleipac2gamepad modedinput
    10 Posts 2 Posters 812 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.
    • niyokiN
      niyoki
      last edited by

      Hello,
      I use the linapple on my Retropie (raspberry pi 3b+ with an Ultimarc ipac2 keyboard encoder ).
      Ipac2 interface is emulating / encoding arcade joysticks and buttons as two gamepads (Dinput mode).
      If I test with jstest under retropie command line my joystick showing six axises but if iI move joystick there is physically onl three axises are existing= axises 2, 4 and 5 (axis 0, 1 and 3 not really existing).
      I can edit nano /opt/retropie/configs/apple2/linapple.conf to change or remap buttons and the axises.
      But if I change the joy0axis0 = 0 to the joy0axis0 = 4 and the joy0axis1 = 1 to the joy0axis1 = 5 nothing happens.
      Maybe the linapple is not listening to the joystick which has more than 4 axises?
      Because if I change the joy0axis0 = 0 to the joy0axis0 = 2 its working.
      Is there any solution or hints how can I solve this issue?

      Kind Regards
      Niyazi

      Raspberry Pi 3b+, Ultimarc Ipac2 with 2 players Gamepad Mode, Ultimarc U-Trak, Retropie, 2x Seimitsu LS-32 , 16x Seimitsu buttons, 4 Administration buttons, 2x Start, Coin Acceptor for both players. Full Diy Arcade Cabinet. 24" Full HD Monitor.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        @niyoki said in joystick has only axis 4 and axis 5 how to configure for linapple?:

        Maybe the linapple is not listening to the joystick which has more than 4 axises?

        The sdl1 library which Linapple uses for joystick support may not support more than 4 axis or may be mis-detecting the axis support on the encoder.

        Can you install the evemu-tools package and output the result from

        evemu-tools /dev/input/jsX
        

        where /dev/input/jsX is your joystick device.

        niyokiN 1 Reply Last reply Reply Quote 0
        • niyokiN
          niyoki @mitu
          last edited by

          @mitu Hello, thank you for your quick answer.
          I tried to install the evemu-tools.
          sudo apt update
          sudo apt install evemu-tools
          I get this:
          evemu-tools is already the newest version (2.7.0-1)
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          After that if I execute this command below:
          evemu-tools /dev/input/jsX (for my case js0 or js1)
          I get an error:
          -bash: evemu-tools: command not found

          Before I tried with jstest /dev/input/js0 or jstest /dev/input/js0 My joystik has two axises 4 and 5 , also 2 trigger buttons acting as a axis 2 and 9 buttons for home, back, start, fire etc.

          Driver version is 2.1.0.
          Joystick (Ultimarc I-PAC 2) has 6 axes (X, Y, Z, Rz, Hat0X, Hat0Y)
          and 16 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, ?, ?, ?, BtnDead).
          Testing ... (interrupt to exit)

          Kind Regards
          Niyazi

          Raspberry Pi 3b+, Ultimarc Ipac2 with 2 players Gamepad Mode, Ultimarc U-Trak, Retropie, 2x Seimitsu LS-32 , 16x Seimitsu buttons, 4 Administration buttons, 2x Start, Coin Acceptor for both players. Full Diy Arcade Cabinet. 24" Full HD Monitor.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @niyoki
            last edited by

            @niyoki said in joystick has only axis 4 and axis 5 how to configure for linapple?:

            I get an error:
            -bash: evemu-tools: command not found

            Sorry, the command is

            sudo evemu-describe /dev/input/eventX
            

            where /dev/input/eventX is the file corresponding to the joystick. You can check which eventX file is tied to the joystick by running

            udevadm info /dev/input/event*
            
            niyokiN 1 Reply Last reply Reply Quote 0
            • niyokiN
              niyoki @mitu
              last edited by niyoki

              @mitu Hi, I tried to run both commands :
              for the udevadm info /dev/input/event* command
              https://pastebin.com/vJwd5FXB

              and for the sudo evemu-describe /dev/input/event0 command
              https://pastebin.com/E10sE2A3

              Kind Regards
              Niyazi

              Raspberry Pi 3b+, Ultimarc Ipac2 with 2 players Gamepad Mode, Ultimarc U-Trak, Retropie, 2x Seimitsu LS-32 , 16x Seimitsu buttons, 4 Administration buttons, 2x Start, Coin Acceptor for both players. Full Diy Arcade Cabinet. 24" Full HD Monitor.

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @niyoki
                last edited by

                @niyoki You can use pastebin.com if the text is too long.

                niyokiN 1 Reply Last reply Reply Quote 0
                • niyokiN
                  niyoki @mitu
                  last edited by niyoki

                  @mitu Hi, I tried to run both commands :
                  for the udevadm info /dev/input/event* command
                  https://pastebin.com/vJwd5FXB

                  and for the sudo evemu-describe /dev/input/event0 command
                  https://pastebin.com/E10sE2A3

                  Kind Regards
                  Niyazi

                  Raspberry Pi 3b+, Ultimarc Ipac2 with 2 players Gamepad Mode, Ultimarc U-Trak, Retropie, 2x Seimitsu LS-32 , 16x Seimitsu buttons, 4 Administration buttons, 2x Start, Coin Acceptor for both players. Full Diy Arcade Cabinet. 24" Full HD Monitor.

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by

                    The output looks ok.
                    You can check with sdl-jstest from https://github.com/Grumbel/sdl-jstest to see if the axis you want to configure work with sdl1. This would rule out any issue with sdl1 not detecting properly the axis.

                    niyokiN 1 Reply Last reply Reply Quote 0
                    • niyokiN
                      niyoki @mitu
                      last edited by

                      @mitu I installed (it was not easy for the beginners like me) the sdl-jstest. Than I used this command: jstest-sdl --test 0 also jstest-sdl --test 1

                      Now my Joystick reacting only to axis2 (left and right trigger buttons) input and has 1 hat switch (using axis4 and axis5)

                      Kind Regards
                      Niyazi

                      Raspberry Pi 3b+, Ultimarc Ipac2 with 2 players Gamepad Mode, Ultimarc U-Trak, Retropie, 2x Seimitsu LS-32 , 16x Seimitsu buttons, 4 Administration buttons, 2x Start, Coin Acceptor for both players. Full Diy Arcade Cabinet. 24" Full HD Monitor.

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @niyoki
                        last edited by

                        @niyoki said in joystick has only axis 4 and axis 5 how to configure for linapple?:

                        ... and has 1 hat switch (using axis4 and axis5)

                        So it looks like axis4/5 are not considered as an analog control, but as a Hat - probably that's why linapple doesn't use them.

                        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.