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 25.9k 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.
    • ExarKunIvE
      ExarKunIv @escc1986
      last edited by

      @escc1986 ok im taking a look at everything that you gave me. it does seems like you have all the info for us to get this up and going. i just need a bit to remember how to go about it this way.

      i go about using xdrv a different way now, but we will get you up and going.

      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

        Thanks for taking a look , take your time , as i know i provided alot , just hope we can get this controller working :)

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

          @escc1986 step 1

          remove this from rc.local

          sudo nano /etc/rc.local
          
          sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
              --evdev /dev/input/event2 \
              --silent \
              --detach-kernel-driver \
              --force-feedback \
              --deadzone-trigger 15% \
              --deadzone 4000 \
              --mimic-xpad \
              --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAY0Y=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 \
              &
          

          still working on the rest

          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 .

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

            @ExarKunIv also what difference did you see with the scummvm and the scummvm-sdl.
            i had both on mine and i did not see anything different

            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

              Sorry if this is a Noob Question

              To delete that file

              I go to directory

              /opt/retropie/supplementary/xboxdrv/bin/xboxdrv

              Sudo rm xboxdrv

              Is that correct ?

              About the other Scumm I did experience freeze ups and I'm not sure why , but in the end I guess I just want to learn how to configure xboxdrv as a mouse ... it's about learning then having fun by playing after I appreciate the help and learn and then play the game

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

                @escc1986 no dont do that

                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 .

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

                  @ExarKunIv

                  just use sudo nano /etc/rc.local and remove

                  sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
                      --evdev /dev/input/event2 \
                      --silent \
                      --detach-kernel-driver \
                      --force-feedback \
                      --deadzone-trigger 15% \
                      --deadzone 4000 \
                      --mimic-xpad \
                      --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAY0Y=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 \
                      &
                  

                  this is what you have in your txt of what you did.

                  as for me i have not played much with either. but im finding that with my 8bitdo pro 2 the scummvm already has my analog stick mapped as a mouse. not sure how.i think cuz it now supports it as a mouse from defult now that im looking into it

                  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

                    Thanks for that , i almost made a big mistake .. thanks for saving me ...

                    ok i just removed the text

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

                      @escc1986 ok now that is gone. we can start
                      with that in there is would override everything setting that the pie uses.

                      we want it for a certain game.

                      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

                        thats interesting that yours is already mappped , nice to know for you

                        i dont know , i just want to get a kick out of myself and my son playing scumm vm with an nes controller something seems cool about it for me

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

                          @escc1986 its all good.

                          with xdrive everything can be made to work

                          here is MY old mapping i used to need to use

                          #!/bin/sh
                          
                          if [ "$1" = "scummvm" ]
                          then
                          sudo killall > /dev/null 2>&1 xboxdrv
                          sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv > /dev/null 2>&1 \
                              --evdev /dev/input/event2 \
                          	--silent \
                          	--detach-kernel-driver \
                          	--force-feedback \
                          	--mimic-xpad \
                          	--dpad-as-button \
                          	--trigger-as-button \
                          	--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
                          	--evdev-keymap KEY_#304=a,KEY_#305=b,KEY_#307=x,KEY_#308=y,KEY_#312=lt,KEY_#313=rt,KEY_#310=lb,KEY_#311=rb,KEY_#317=tl,KEY_#318=tr,KEY_#314=back,KEY_#315=start \
                          	--calibration x1=-32767:0:32767,y1=-32767:0:32767,x2=-32767:0:32767,y2=-32767:0:32767 \
                          	--axismap -Y1=Y1,-Y2=Y2 \
                          	--ui-axismap x1=REL_X:10,y1=REL_Y:10 \
                          	--ui-buttonmap a=BTN_LEFT,b=BTN_RIGHT,start=KEY_F5,back=KEY_ESC \
                          	--ui-buttonmap guide=void,x=void,y=void,lb=void,rb=void,tl=void,tr=void,lt=void,rt=void,back=void \
                          	--ui-axismap x2=void \
                          &
                          fi
                          

                          yours was getting there but its missing a bit for it all work.

                          YOURS

                          #!/bin/sh
                          
                          if [ "$1" = "/opt/retropie/emulators/scummvm" ]
                          then
                          sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
                              --evdev /dev/input/event2 \
                              --silent \
                              --detach-kernel-driver \
                              --force-feedback \
                              --deadzone-trigger 15% \
                              --deadzone 4000 \
                              --mimic-xpad \
                              --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAY0Y=dpad_y \
                              --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•$
                              --dpad-only \
                              --ui-axismap lt=void,rt=void \
                              --ui-buttonmap tl=void,tr=void,guide=void \
                          &
                          fi
                          

                          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

                            good that we got rid of it now .... we shall start fresh and clean

                            (i think i meddled with this xboxdrv months ago ... how would i know or delete any controllers from the past )

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

                              thanks for pointing your's out and then mine

                              i know i may have a more simple controls ... but i still dont really understand & confused what im missing ... but hope you can clear that up

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

                                @escc1986

                                --evdev is the code the controller sends out
                                --ui is what we want the controller to do.

                                so exampler from mine
                                i had the a key mapped as the left mouse button

                                --evdev-keymap KEY_#304=a
                                
                                --ui-buttonmap a=BTN_LEFT
                                

                                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 .

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

                                  @escc1986 said in ScummVM Controlller Issues:

                                  thanks for pointing your's out and then mine

                                  i know i may have a more simple controls ... but i still dont really understand & confused what im missing ... but hope you can clear that up

                                  im going to do my best

                                  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 .

                                  E 1 Reply Last reply Reply Quote 0
                                  • 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
                                            • 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.