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

    Streets of rage remake help "esc" key needed

    Scheduled Pinned Locked Moved Help and Support
    button mappingportssorrcontrol configmain menu
    24 Posts 4 Posters 8.7k 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.
    • mediamogulM
      mediamogul Global Moderator @trixta
      last edited by

      @trixta

      You can always key-map the 'esc' to your controller. I've posted a guide on how to do this with xboxdrv.

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

      1 Reply Last reply Reply Quote 0
      • T
        trixta
        last edited by trixta

        the problem is the emulators.cfg only contains
        sorr = "pushd /opt/retropie/ports/sorr; ./bgdi-330 ./SorR.dat; popd"
        default = "sorr"
        and would it be a simple case of just adding the following line if i was using a 360 controller?
        --ui-buttonmap back=KEY_ESC \

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

          @trixta

          That does make it a bit more complicated and might even prohibit launching from the emulators.cfg file. However, there is a really nice alternative to launch the xboxdrv command listed in the guide here that might just do the trick. Also, there's no need to use an actual XBox 360 controller if you don't want to. Using xboxdrv in this way will work with most controllers.

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

          T 1 Reply Last reply Reply Quote 0
          • T
            trixta @mediamogul
            last edited by

            @mediamogul
            Thank you for the response, im going to give that a try, but I think it might be to far ahead of my ability's atm.

            1 Reply Last reply Reply Quote 0
            • T
              trixta
              last edited by

              @mediamogul
              Am I being stupid or is there a problem with my script
              button map 6 = select and button map 7 = start

              #!/bin/sh

              Uncomment one or all of the following if you need to find some information about the emulator or roms

              Name of the emulator

              echo $1 >> /dev/shm/runcommand.log

              Name of the software used for running the emulation

              echo $2 >> /dev/shm/runcommand.log

              Name of the rom

              echo $3 >> /dev/shm/runcommand.log

              ##Executed command line
              echo $4 >> /dev/shm/runcommand.log

              The FUN begins

              #Get ROM name striping full path
              rom="${3##*/}"

              Set variables for your joypad and emulator

              Basic Configurations - Standard controller mappings

              snes="/opt/retropie/supplementary/xboxdrv/bin/xboxdrv >/dev/null
              --evdev /dev/input/by-id/USB,2-axis 8-button gamepad
              --silent
              --detach-kernel-driver
              --force-feedback
              --deadzone-trigger 15%
              --deadzone 4000
              --mimic-xpad
              --trigger-as-button
              --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y
              --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_NORTH=x,BTN_WEST=y,BTN_TL=lb,BTN_TR=rb,BTN_TL2=lt,BTN_TR2=rt,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide,BTN_SELECT=back,BTN_START=start"

              Extended Configurations

              Specific emulator configuration or any other parameters you will need only for some emulators

              sorr="--axismap -Y1=Y1,-Y2=Y2
              --ui-buttonmap 6+7=KEY_ESC

              fourway="--four-way-restrictor"

              invert="--ui-buttonmap du=KEY_DOWN,dd=KEY_UP"

              Kill Command

              xboxkill="sudo killall >/dev/null xboxdrv"

              Execute the driver with the configuration you need

              $1 is the name of the emulation, not the name of the software used

              it is intellivision not jzintv

              case $1 in

              sorr)
                  $xboxkill
                  joycommand="$XboxOne $sorr &"
                  eval $joycommand
              ;;
              

              esac

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

                @trixta said in Streets of rage remake help "esc" key needed:

                button map 6 = select and button map 7 = start

                When mapping buttons from your physical controller to the virtual controller, it's important to remember that it then becomes a virtualized XBox 360 controller. So, say you mapped buttons 6 & 7 on your physical controller to 'back' & 'start' respectively on the virtual XBox 360 controller, you would then key-map 'esc' to the combination of 'back' & 'start' rather than 6 & 7. In pratice, it will look like this:

                --ui-buttonmap back+start=KEY_ESC
                

                Rather than...

                --ui-buttonmap 6+7=KEY_ESC
                

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

                T 1 Reply Last reply Reply Quote 0
                • T
                  trixta @mediamogul
                  last edited by

                  @mediamogul with that line changed im still getting no joy. could it be a directory issue as its in /ports/sorr and not just sorr?

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

                    @trixta

                    That's definitely worth trying.

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

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      Dochartaigh @mediamogul
                      last edited by Dochartaigh

                      Can I threadcrap with one little question about SoRR instead of starting my own topic?

                      Can you really NOT save in this game in the Raspberry Pi/RetroPie version? (my frigging Google-Fu is week and I can't find a straight answer to this)

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        trixta @Dochartaigh
                        last edited by

                        @Dochartaigh saving works fine

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Dochartaigh @trixta
                          last edited by

                          @trixta said in Streets of rage remake help "esc" key needed:

                          @Dochartaigh saving works fine

                          Could you please tell me what key to press to save? What key to load a save? Only 1 save slot? Can you Save at any time?

                          And mods, if I'm overstepping my bounds could you please split into a new topic for me? Appreciated. Thanks!

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            trixta @Dochartaigh
                            last edited by

                            @Dochartaigh I believe it auto saves for you, so you just start off where you left off, providing you dont use the quit option from pressing start.

                            1 Reply Last reply Reply Quote 0
                            • T
                              trixta
                              last edited by

                              @mediamogul could be possible I haven't install the drive correctly as well. Ive installed the driver from the rp menu then turned enable on. Then Ive dropped the above script in /opt/retropie/configs/all/ and renamed it runcommand-onstart.sh

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

                                @trixta

                                No problems there. It's likely an issue either with the case statement script or the xboxdrv command itself. What I would recommend doing is eliminating the launch script from the equation temporarily and use the guide to make a basic xboxdrv command that does what you want. Then, try launching it from the command line. If it is a problem with the command, you should get some immediate feedback that will say so.

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

                                1 Reply Last reply Reply Quote 0
                                • hansolo77H
                                  hansolo77
                                  last edited by

                                  Since this thread sort of died... I'd like to know if @trixta ever got this working or not? It looks like I might have to set up an xboxdrv mapping for my setup as well. The biggest reason being that I can't map my controller inside the game, it's undetected. So I have to resort to using xboxdrv and configuring the game to use keyboard buttons (and have xboxdrv map to those buttons). I'm just curious if you were ever able to get the launching of xboxdrv to work or not.

                                  Reading through the thread though, and from my looking over the instructions, I wonder if the problem comes from the driver itself not loading due to the xpad driver already being loaded? I do recall there being mention in the instructions about making sure your script includes a line to disable it first.

                                  @mediamogul xboxdrv is like your favorite thing. :) You were suggesting it to me before. You say you don't need to have an Xbox controller to make it work. Can I ask, how DO you make it work though? I mean, suppose I have multiple controllers. Is there a way to specify exactly what controller I want to use, and then have it mapped to a specific controller input in the emulator? I'm still struggling with my other emulator. Seems some of them don't recognize my controller, and even though I suspected it was because the emulator was looking for a joystick on js0, it turned out not be the case.

                                  Who's Scruffy Looking?

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

                                    @hansolo77 said in Streets of rage remake help "esc" key needed:

                                    xboxdrv is like your favorite thing. :)

                                    Well, I'd say my favorite thing is playing retro games comfortably. I currently run four emulation setups in my home and each is on a different platform. The one thing I learned to make peace with years ago was the need for an external key-mapping solution to allow the games to be played as close to their original intent as possible. Out of all my setups, xboxdrv is without a doubt the most difficult to deal with, but it's also the only mapping software I've found for the Pi that delivers the level of control I've come to rely on.

                                    Is there a way to specify exactly what controller I want to use...

                                    The first part of the guide illustrates how to assign a specific controller to the mapping. The line responsible for this reads as follows.

                                    --evdev /dev/input/by-id/*
                                    

                                    Another mapping would need to be made in the same way for each additional controller and would be launched as separate instances of xboxdrv.

                                    ...and then have it mapped to a specific controller input in the emulator?

                                    Most of the emulators and ports are already capable of using keyboard keys and mouse input. After assigning the same keys and/or mouse input to a controller via xboxdrv, the emulators aren't able to tell the difference.

                                    I'm still struggling with my other emulator. Seems some of them don't recognize my controller

                                    Hey, I get it. These issues are the main reason I advocate for key-mapping in the first place. Without it as an option on an emulation platform, you're at the mercy of whatever limited controller support or rudimentary control scheme that may exist by default. While many of these emulators have control options that are very well thought out, others barely allow you to play the games at all, let alone play them well.

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

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

                                      I tell you what; since you only want to map one or two pieces of software, just concentrate on getting a basic mapping to execute in the command line over an ssh session. From there, get with me and we'll add the keys required by the emulator and afterward, I'll show you a way to launch the mapping alongside the software that is much simpler than either of the two options currently in the guide.

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

                                      hansolo77H 1 Reply Last reply Reply Quote 0
                                      • hansolo77H
                                        hansolo77
                                        last edited by

                                        OK! :) I actually have the weekend off (never happen again lol)). So I'm going to be messing with this the whole time till I'm satisfied.

                                        Who's Scruffy Looking?

                                        1 Reply Last reply Reply Quote 0
                                        • hansolo77H
                                          hansolo77 @mediamogul
                                          last edited by

                                          @mediamogul I'm going to create a new thread for xboxdrv support so I'm not hijacking this thread.

                                          Who's Scruffy Looking?

                                          1 Reply Last reply Reply Quote 1
                                          • T
                                            trixta
                                            last edited by

                                            no I never got this working :( and gave up on it

                                            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.