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

    xboxdrv for 4 way restriction

    Scheduled Pinned Locked Moved Help and Support
    4 way joystick8 way joystickjoystick configretropie 4xboxdrv
    6 Posts 3 Posters 694 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.
    • C
      churchill7
      last edited by churchill7

      Howdy... I read through Universal-Controller-Calibration-&-Mapping-Using-xboxdrv. Down in the section "Restricting directional control to four ways" it goes over the use and switches associated with restricting an 8 way stick to 4 way. What is not clear to me is how to use this command. Is it something to add to a startup script? Just run the command with the needed switches, and it's good? How to persist after reboot in a way the RetroPie likes? If just running the command below is all I need to run or do I have to work out all the mappings?

      RetroPie 4 and Mame2003 emu by the way.

      Any insight is appreciated!

      sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv --four-way-restrictor 
      

      Ok Edit:.... So I poked my way through the docs and came up with the following script.

      sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
          --evdev /dev/input/by-id/usb-Logitech_Logitech_Extreme_3D-event-joystick \
          --silent \
          --detach-kernel-driver \
          --force-feedback \
          --deadzone-trigger 15% \
          --deadzone 4000 \
          --mimic-xpad \
          --four-way-restrictor
          --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_X=x2,ABS_Y=y2 \
          --evdev-keymap BTN_THUMB=a,BTN_TRIGGER=b,BTN_BASE4=x,BTN_BASE3=y,BTN_BASE=select,BTN_BASE2=start \
          >/dev/null &
      

      Now a controller shows up but shows up unconfigured so it doesn't work...

      Still looking for thougths

      M 1 Reply Last reply Reply Quote 0
      • M
        mahoneyt944 @churchill7
        last edited by mahoneyt944

        @churchill7 this is a core option.

        Load the core with a 4 way game like donkey kong or pacman.

        Retroarch main menu-> Quick menu-> options -> 4-way joystick emulation on 8-way joysticks -> enable

        C 1 Reply Last reply Reply Quote 0
        • C
          churchill7 @mahoneyt944
          last edited by

          @mahoneyt944 I am not seeing "4-way joystick emulation" under Quick Menu-->Options.

          LibationL 1 Reply Last reply Reply Quote 0
          • LibationL
            Libation @churchill7
            last edited by

            @churchill7 MAME 2003 Plus has the 4 way option.

            C 1 Reply Last reply Reply Quote 0
            • C
              churchill7 @Libation
              last edited by

              @libation I am using Mame2003-Plus now. I gave up on the xboxdrv deal. Honestly I think that mame2003-plus knows when a game is 4 or 8 way. I still do not see any options for 4 way emulation, however, when I go into a game like Tron the light cycles are playable again so it seems to be automated. I may be wrong. Just my observation.

              M 1 Reply Last reply Reply Quote 0
              • M
                mahoneyt944 @churchill7
                last edited by mahoneyt944

                @churchill7 in mame2003-plus and mame2003 this core option will be hidden unless you're playing a game that uses the feature. I recommend running pacman then going into the core options.

                https://github.com/libretro/mame2003-libretro/blob/7ea22d44c0d899cf7670d458cd6dac0942839d2d/src/mame2003/mame2003.c#L187

                The default is probably decent though like you observed in Tron.

                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.