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

    ScummVM Controlller Issues

    Scheduled Pinned Locked Moved Help and Support
    scummvm
    168 Posts 3 Posters 27.2k 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.
    • E
      escc1986 @ExarKunIv
      last edited by

      @ExarKunIv

      that makes sense to me , thank you

      ExarKunIvE 1 Reply Last reply Reply Quote 0
      • ExarKunIvE
        ExarKunIv @escc1986
        last edited by

        @escc1986

        the buttons are the easy part. the dpad is tricky for me.
        so i think work on getting the other buttons mapped. as i do some playing on my end

        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
        Maintainer of RetroPie-Extra .

        1 Reply Last reply Reply Quote 0
        • E
          escc1986 @ExarKunIv
          last edited by

          @ExarKunIv

          sorry to be a headach ...

          i guess the thing that confuses me the most is the steps

          like there is alot of steps unless it can be simplfyed somehow

          yes the d pad is what confuese me alot too

          1 Reply Last reply Reply Quote 0
          • E
            escc1986
            last edited by

            im going to try to start over ...

            im going to discconect my keyboard and mouse and see if anything changes

            1 Reply Last reply Reply Quote 0
            • E
              escc1986
              last edited by

              ok after typing (With Disconnected keyboard and mouse )

              cat /proc/bus/input/devices

              my event changed to 0

              event0

              ExarKunIvE 1 Reply Last reply Reply Quote 0
              • ExarKunIvE
                ExarKunIv @escc1986
                last edited by ExarKunIv

                @escc1986 yes thats right.
                the event will change as things are plugged in and out

                so is you dont play to have a keyboard in there full time best to set if for event 0

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                1 Reply Last reply Reply Quote 0
                • E
                  escc1986
                  last edited by

                  thank you for informing me , i had no idea ....

                  ok can you clear this up with me

                  which setting do i use out of these 3 settings :

                  sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
                  --evdev /dev/input/by-id/[•]
                  --silent
                  --detach-kernel-driver
                  --force-feedback
                  --deadzone-trigger 15%
                  --deadzone 4000
                  --mimic-xpad
                  --evdev-absmap ABS_[•]=x1,ABS_[•]=y1,ABS_[•]=x2,ABS_[•]=y2,ABS_[•]=lt,ABS_[•]=rt,ABS_[•]=dpad_x,ABS_[•]=dpad_y
                  --evdev-keymap BTN_[•]=a,BTN_[•]=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=tl,BTN_[•]=tr,BTN_[•]=guide,BTN_[•]=back,BTN_[•]=start
                  &

                  sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
                  --evdev /dev/input/by-id/[•]
                  --silent
                  --detach-kernel-driver
                  --force-feedback
                  --deadzone-trigger 15%
                  --deadzone 4000
                  --mimic-xpad
                  --dpad-as-button
                  --evdev-absmap ABS_[•]=x1,ABS_[•]=y1,ABS_[•]=x2,ABS_[•]=y2,ABS_[•]=lt,ABS_[•]=rt
                  --evdev-keymap BTN_[•]=a,BTN_[•]=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=tl,BTN_[•]=tr,BTN_[•]=guide,BTN_[•]=back,BTN_[•]=start,BTN_[•]=du,BTN_[•]=dd,BTN_[•]=dl,BTN_[•]=dr
                  &

                  sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
                  --evdev /dev/input/by-id/[•]
                  --silent
                  --detach-kernel-driver
                  --force-feedback
                  --deadzone-trigger 15%
                  --deadzone 4000
                  --mimic-xpad
                  --evdev-absmap ABS_[•]=dpad_x,ABS_[•]=dpad_y
                  --evdev-keymap BTN_[•]=a,BTN_[•]=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=back,BTN_[•]=start
                  --dpad-only
                  --ui-axismap lt=void,rt=void
                  --ui-buttonmap tl=void,tr=void,guide=void
                  &

                  ExarKunIvE 1 Reply Last reply Reply Quote 0
                  • E
                    escc1986
                    last edited by

                    just dont know which template to follow that is correct for my nes controller

                    that i will need to make a nano for

                    nano /etc/rc.local

                    ExarKunIvE 1 Reply Last reply Reply Quote 0
                    • ExarKunIvE
                      ExarKunIv @escc1986
                      last edited by ExarKunIv

                      @escc1986
                      i say go for the last one
                      you can always cut stuff out

                      and stay out of rc.local

                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                      Maintainer of RetroPie-Extra .

                      1 Reply Last reply Reply Quote 0
                      • ExarKunIvE
                        ExarKunIv @escc1986
                        last edited by

                        @escc1986

                        you will be doing your work in the runcommand.onstart

                        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                        Maintainer of RetroPie-Extra .

                        1 Reply Last reply Reply Quote 0
                        • E
                          escc1986
                          last edited by escc1986

                          kind of confused .... so i

                          sudo nano /opt/retropie/configs/all/runcommand-onstart.sh

                          (This template)

                          sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
                          --evdev /dev/input/by-id/[•]
                          --silent
                          --detach-kernel-driver
                          --force-feedback
                          --deadzone-trigger 15%
                          --deadzone 4000
                          --mimic-xpad
                          --evdev-absmap ABS_[•]=dpad_x,ABS_[•]=dpad_y
                          --evdev-keymap BTN_[•]=a,BTN_[•]=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=back,BTN_[•]=start
                          --dpad-only
                          --ui-axismap lt=void,rt=void
                          --ui-buttonmap tl=void,tr=void,guide=void
                          &

                          ExarKunIvE 2 Replies Last reply Reply Quote 0
                          • ExarKunIvE
                            ExarKunIv @escc1986
                            last edited by

                            @escc1986

                            close
                            you need this on the top or it will not know when to start the mapping

                            if [ "$1" = "scummvm" ]
                            then
                            sudo killall >> /dev/shm/runcommand.log 2>&1 xboxdrv
                            sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 \
                                --evdev /dev/input/by-id/[•] \
                            

                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                            Maintainer of RetroPie-Extra .

                            1 Reply Last reply Reply Quote 0
                            • ExarKunIvE
                              ExarKunIv @escc1986
                              last edited by

                              @escc1986

                              https://retropie.org.uk/docs/Universal-Controller-Calibration-&-Mapping-Using-xboxdrv/

                              go to the

                              Key-Mapping For Individual Emulators part to get a start on how the runcommand needs to look like

                              but for now i think you should just put your mapping in a txt on your computer.

                              there are ways to test it before you setup the run command

                              RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                              RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                              Maintainer of RetroPie-Extra .

                              1 Reply Last reply Reply Quote 0
                              • E
                                escc1986
                                last edited by escc1986

                                not sure what to put here

                                --evdev /dev/input/by-id/[•] \

                                (the dot)

                                ExarKunIvE 1 Reply Last reply Reply Quote 0
                                • ExarKunIvE
                                  ExarKunIv @escc1986
                                  last edited by ExarKunIv

                                  @escc1986
                                  just use the event and the number so for you it will be event0
                                  i could never get the id-to work

                                  think you could send me a link or something for your controller.
                                  when you posted the event codes there are alot more buttons then i would of thought for a NES

                                  RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                  RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                  Maintainer of RetroPie-Extra .

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    escc1986
                                    last edited by

                                    --evdev /dev/input/by-id/event0 \

                                    like so ?

                                    ExarKunIvE 1 Reply Last reply Reply Quote 0
                                    • ExarKunIvE
                                      ExarKunIv @escc1986
                                      last edited by

                                      @escc1986 said in ScummVM Controlller Issues:

                                      ~~--evdev /dev/input/by-id/event0 ~~

                                      --evdev /dev/input/event0 \

                                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                      Maintainer of RetroPie-Extra .

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        escc1986
                                        last edited by

                                        my mistake , thank you ...

                                        will send you the link now of my controller ...

                                        is this ok :

                                        if [ "$1" = "scummvm" ]
                                        then
                                        sudo killall >> /dev/shm/runcommand.log 2>&1 xboxdrv
                                        sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1
                                        --evdev /dev/input/even0
                                        --silent
                                        --detach-kernel-driver
                                        --force-feedback
                                        --deadzone-trigger 15%
                                        --deadzone 4000
                                        --mimic-xpad
                                        --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y
                                        --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_TL2=back,BTN_TR2=start
                                        --dpad-only
                                        --ui-axismap lt=void,rt=void
                                        --ui-buttonmap tl=void,tr=void,guide=void
                                        &

                                        ExarKunIvE 1 Reply Last reply Reply Quote 0
                                        • ExarKunIvE
                                          ExarKunIv @escc1986
                                          last edited by

                                          @escc1986 said in ScummVM Controlller Issues:

                                          my mistake , thank you ...

                                          will send you the link now of my controller ...

                                          is this ok :

                                          if [ "$1" = "scummvm" ]
                                          then
                                          sudo killall >> /dev/shm/runcommand.log 2>&1 xboxdrv
                                          sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1
                                          --evdev /dev/input/even0
                                          --silent
                                          --detach-kernel-driver
                                          --force-feedback
                                          --deadzone-trigger 15%
                                          --deadzone 4000
                                          --mimic-xpad
                                          --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y
                                          --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_TL2=back,BTN_TR2=start
                                          --dpad-only
                                          --ui-axismap lt=void,rt=void
                                          --ui-buttonmap tl=void,tr=void,guide=void
                                          &

                                          need to fix the event. should be event0 \

                                          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                          Maintainer of RetroPie-Extra .

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            escc1986
                                            last edited by

                                            ok i lied , there are 2 other buttons on the top an L and an R , im sorry i didnt include them ... i just wanted it to be simple with less buttons to map

                                            controller link

                                            https://www.nintendo.com/switch/online-service/nes/?cid=A1005-01:ch=pdpd&msclkid=0ea08d12a8f1150aaee0d3507e34c4fb

                                            ExarKunIvE 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.