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

      post what you changed

      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

        #!/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/event0 \
                --silent \
                --detach-kernel-driver \
                --force-feedback \
                --mimic-xpad \
                --trigger-as-button \
                --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
                --evdev-keymap BTN_TL2=a,BTN_TR2=b,BTN_[•]=x,BTN_[•]=y,BTN_WEST=lb,BTN_Z=rb,BTN_EAST=back,BTN_SOUTH=start /
                --ui-axismap dpad_x=REL_X:10,dpad_y=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, \
                &
        fi
        1 Reply Last reply Reply Quote 0
        • E
          escc1986
          last edited by

          @escc1986 said in ScummVM Controlller Issues:

          --evdev-keymap BTN_TL2=a,BTN_TR2=b,BTN_[•]=x,BTN_[•]=y,BTN_WEST=lb,BTN_Z=rb,BTN_EAST=back,BTN_SOUTH=start /

          --evdev-keymap BTN_TL2=a,BTN_TR2=b,BTN_[•]=x,BTN_[•]=y,BTN_WEST=lb,BTN_Z=rb,BTN_EAST=back,BTN_SOUTH=start /
          ExarKunIvE 1 Reply Last reply Reply Quote 0
          • ExarKunIvE
            ExarKunIv @escc1986
            last edited by ExarKunIv

            @escc1986

            ok this might be a pain for you, and im sorry.
            but wipe everything out of the runcommmand.

            save it in a txt file of course.

            i want to see if there is something overriding what we are trying to do, cuz what you posted should of changed when you changed the mapping

            also you have xboxdrv installed

            reboot after you wiped the file

            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 sure

              no problem

              will let you know when done

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

                #!/bin/sh
                
                
                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/event0 \
                --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_TL2=a,BTN_TR2=b,BTN_[•]=x,BTN_[•]=y,BTN_WEST=lb,BTN_Z=rb,BTN_EAST=back,BTN_SOUTH=start
                --dpad-only
                --ui-axismap lt=void,rt=void
                --ui-buttonmap a=BTN_EAST,b=BTN_SOUTH,start=KEY_F5,back=KEY_ESC \
                &
                f1
                
                
                
                
                
                
                
                
                 omxplayer -b "/home/pi/video/intro.mp4" > /dev/null &
                # the line below is needed to use the joystick selection by name method
                bash "/opt/retropie/supplementary/joystick-selection/js-onstart.sh" "$@"
                [[ $2 == openbor ]] && filename=$(basename "$3") && cp "/opt/retropie/ports/openbor/Saves/master.cfg" "/opt/retropie/ports/openbor/Sav$
                1 Reply Last reply Reply Quote 0
                • E
                  escc1986
                  last edited by escc1986

                  ok

                  wiped the runcommand

                  rebooted

                  now what would you like me to do

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

                    @escc1986

                    start scrumm get in a game and see if the controller does anything like before

                    it should not do athing not even the triggers with f5 and space

                    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

                      just tested now

                      same

                      R - f5

                      L- space

                      so what is taking over

                      i have xboxdrv installed

                      https://dropmefiles.com/UgoPt

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

                        perhaps ... do you need me to send you any config files in my pi ?

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

                          @escc1986

                          no clue.

                          at with what you showed me. those keys should not do anything.
                          unless our setup is not working and those are just set up from the devs of scumm

                          so since you have nothing in the run command
                          we can do a different way of testing

                          with a game running

                          put this in putty

                          /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
                          	--evdev /dev/input/event0 \
                          	--silent \
                          	--detach-kernel-driver \
                          	--force-feedback \
                          	--mimic-xpad \
                          	--trigger-as-button \
                          	--evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
                              --evdev-keymap KEY_#305=a,KEY_#304=b,KEY_#307=x,KEY_#308=y,KEY_#310=tl,KEY_#311=tr,KEY_#314=back,KEY_#315=start \
                          	--ui-axismap dpad_x=REL_X:10,dpad_y=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
                          	
                          

                          this a shortcut on testing

                          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

                            @ExarKunIv said in ScummVM Controlller Issues:

                            /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
                            --evdev /dev/input/event0
                            --silent
                            --detach-kernel-driver
                            --force-feedback
                            --mimic-xpad
                            --trigger-as-button
                            --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y
                            --evdev-keymap KEY_#305=a,KEY_#304=b,KEY_#307=x,KEY_#308=y,KEY_#310=tl,KEY_#311=tr,KEY_#314=back,KEY_#315=start
                            --ui-axismap dpad_x=REL_X:10,dpad_y=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

                            xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/
                            Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com>
                            Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
                            This program comes with ABSOLUTELY NO WARRANTY.
                            This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.
                            
                            
                            -- [ ERROR ] ------------------------------------------------------
                            
                            Error: No stuitable uinput device found, tried:
                            
                              /dev/input/uinput: No such file or directory
                              /dev/uinput: Permission denied
                              /dev/misc/uinput: No such file or directory
                            
                            Troubleshooting:
                              * make sure uinput kernel module is loaded
                              * make sure joydev kernel module is loaded
                              * make sure you have permissions to access the uinput device
                              * start the driver with ./xboxdrv -v --no-uinput to see if the driver itself works
                            ExarKunIvE 1 Reply Last reply Reply Quote 0
                            • ExarKunIvE
                              ExarKunIv @escc1986
                              last edited by ExarKunIv

                              @escc1986

                              ok that is what im getting too.

                              i think we need some more help on this

                              i just hope he is still coming here

                              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

                                hope we may get the help on here

                                hope its a simple fix

                                im sorry for the trouble ,

                                hummm i wonder , whats wrong

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

                                  @escc1986 no trouble, im having the same thing so its a problem for me too

                                  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

                                    hope we may get the hep :)

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

                                      @escc1986

                                      ugh.... i cant belive i did that i forgot a command

                                      sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
                                      	--evdev /dev/input/event0 \
                                      	--silent \
                                      	--detach-kernel-driver \
                                      	--force-feedback \
                                      	--mimic-xpad \
                                      	--trigger-as-button \
                                      	--evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
                                          --evdev-keymap KEY_#305=a,KEY_#304=b,KEY_#307=x,KEY_#308=y,KEY_#310=tl,KEY_#311=tr,KEY_#314=back,KEY_#315=start \
                                      	--ui-axismap dpad_x=REL_X:10,dpad_y=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
                                      

                                      try this

                                      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

                                        do i add

                                        #!/bin/sh
                                        
                                        
                                        if [ "$1" = "scummvm" ]
                                        then
                                        sudo killall >> /dev/shm/runcommand.log 2>&1 xboxdrv
                                        ExarKunIvE 1 Reply Last reply Reply Quote 0
                                        • ExarKunIvE
                                          ExarKunIv @escc1986
                                          last edited by

                                          @escc1986

                                          no not yet

                                          run what i posted just now in putty when a game is running and see what the buttons do.

                                          i guess i needed a refresher on this

                                          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

                                            @ExarKunIv said in ScummVM Controlller Issues:

                                            sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
                                            --evdev /dev/input/event0
                                            --silent
                                            --detach-kernel-driver
                                            --force-feedback
                                            --mimic-xpad
                                            --trigger-as-button
                                            --evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y
                                            --evdev-keymap KEY_#305=a,KEY_#304=b,KEY_#307=x,KEY_#308=y,KEY_#310=tl,KEY_#311=tr,KEY_#314=back,KEY_#315=start
                                            --ui-axismap dpad_x=REL_X:10,dpad_y=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

                                            
                                            xboxdrv 0.8.8 - http://pingus.seul.org/~grumbel/xboxdrv/
                                            Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmail.com>
                                            Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
                                            This program comes with ABSOLUTELY NO WARRANTY.
                                            This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details.
                                            
                                            
                                            Your Xbox/Xbox360 controller should now be available as:
                                              /dev/input/js1
                                              /dev/input/event1
                                            
                                            Press Ctrl-C to quit
                                            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.