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.4k 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

      Can you post what you get for the following

      cat /proc/bus/input/devices ( it will show all your connected devices

      evtest /dev/input/event[•] will show all your buttons for your controller (event)(is where you put you controller number)

      Sorry for the format not being right. I'm on my phone

      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:

        cat /proc/bus/input/devices

        cat /proc/bus/input/devices

        cat /proc/bus/input/devices
        I: Bus=0003 Vendor=413c Product=2003 Version=0110
        N: Name="Dell Dell USB Keyboard"
        P: Phys=usb-3f980000.usb-1.2/input0
        S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:413C:2003.0001/input/input0
        U: Uniq=
        H: Handlers=sysrq kbd leds event0
        B: PROP=0
        B: EV=120013
        B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
        B: MSC=10
        B: LED=7

        I: Bus=0003 Vendor=0461 Product=4d0f Version=0111
        N: Name="PixArt USB Optical Mouse"
        P: Phys=usb-3f980000.usb-1.4/input0
        S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4D0F.0002/input/input1
        U: Uniq=
        H: Handlers=mouse0 event1
        B: PROP=0
        B: EV=17
        B: KEY=70000 0 0 0 0 0 0 0 0
        B: REL=103
        B: MSC=10

        I: Bus=0005 Vendor=057e Product=2007 Version=0001
        N: Name="NES Controller (L)"
        P: Phys=b8:27:eb:7b:bc:a9
        S: Sysfs=/devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:057E:2007.0003/input/input2
        U: Uniq=ec:c4:0d:a4:92:4a
        H: Handlers=event2 js0
        B: PROP=0
        B: EV=10001b
        B: KEY=ffff0000 0 0 0 0 0 0 0 0 0
        B: ABS=3001b
        B: MSC=10

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

          @ExarKunIv said in ScummVM Controlller Issues:

          evtest /dev/input/event[•]

          evtest /dev/input/event2
          Input driver version is 1.0.1
          Input device ID: bus 0x5 vendor 0x57e product 0x2007 version 0x1
          Input device name: "NES Controller (L)"
          Supported events:
          Event type 0 (EV_SYN)
          Event type 1 (EV_KEY)
          Event code 304 (BTN_SOUTH)
          Event code 305 (BTN_EAST)
          Event code 306 (BTN_C)
          Event code 307 (BTN_NORTH)
          Event code 308 (BTN_WEST)
          Event code 309 (BTN_Z)
          Event code 310 (BTN_TL)
          Event code 311 (BTN_TR)
          Event code 312 (BTN_TL2)
          Event code 313 (BTN_TR2)
          Event code 314 (BTN_SELECT)
          Event code 315 (BTN_START)
          Event code 316 (BTN_MODE)
          Event code 317 (BTN_THUMBL)
          Event code 318 (BTN_THUMBR)
          Event code 319 (?)
          Event type 3 (EV_ABS)
          Event code 0 (ABS_X)
          Value 32768
          Min 0
          Max 65535
          Fuzz 255
          Flat 4095
          Event code 1 (ABS_Y)
          Value 32768
          Min 0
          Max 65535
          Fuzz 255
          Flat 4095
          Event code 3 (ABS_RX)
          Value 32768
          Min 0
          Max 65535
          Fuzz 255
          Flat 4095
          Event code 4 (ABS_RY)
          Value 32768
          Min 0
          Max 65535
          Fuzz 255
          Flat 4095
          Event code 16 (ABS_HAT0X)
          Value 0
          Min -1
          Max 1
          Event code 17 (ABS_HAT0Y)
          Value 0
          Min -1
          Max 1
          Event type 4 (EV_MSC)
          Event code 4 (MSC_SCAN)
          Key repeat handling:
          Repeat type 20 (EV_REP)
          Repeat code 0 (REP_DELAY)
          Value 250
          Repeat code 1 (REP_PERIOD)
          Value 33
          Properties:
          Testing ... (interrupt to exit)
          Event: time 1581384792.771063, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value -1
          Event: time 1581384792.771063, -------------- SYN_REPORT ------------
          Event: time 1581384792.921040, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 0
          Event: time 1581384792.921040, -------------- SYN_REPORT ------------
          Event: time 1581384793.656070, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 1
          Event: time 1581384793.656070, -------------- SYN_REPORT ------------
          Event: time 1581384793.806042, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 0
          Event: time 1581384793.806042, -------------- SYN_REPORT ------------
          Event: time 1581384794.376036, type 3 (EV_ABS), code 16 (ABS_HAT0X), value -1
          Event: time 1581384794.376036, -------------- SYN_REPORT ------------
          Event: time 1581384794.541031, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 0
          Event: time 1581384794.541031, -------------- SYN_REPORT ------------
          Event: time 1581384795.036039, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 1
          Event: time 1581384795.036039, -------------- SYN_REPORT ------------
          Event: time 1581384795.216068, type 3 (EV_ABS), code 16 (ABS_HAT0X), value 0
          Event: time 1581384795.216068, -------------- SYN_REPORT ------------
          Event: time 1581384795.696032, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90009
          Event: time 1581384795.696032, type 1 (EV_KEY), code 312 (BTN_TL2), value 1
          Event: time 1581384795.696032, -------------- SYN_REPORT ------------
          Event: time 1581384795.950511, type 1 (EV_KEY), code 312 (BTN_TL2), value 2
          Event: time 1581384795.950511, -------------- SYN_REPORT ------------
          Event: time 1581384795.951042, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90009
          Event: time 1581384795.951042, type 1 (EV_KEY), code 312 (BTN_TL2), value 0
          Event: time 1581384795.951042, -------------- SYN_REPORT ------------
          Event: time 1581384796.431037, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000a
          Event: time 1581384796.431037, type 1 (EV_KEY), code 313 (BTN_TR2), value 1
          Event: time 1581384796.431037, -------------- SYN_REPORT ------------
          Event: time 1581384796.690515, type 1 (EV_KEY), code 313 (BTN_TR2), value 2
          Event: time 1581384796.690515, -------------- SYN_REPORT ------------
          Event: time 1581384796.701046, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000a
          Event: time 1581384796.701046, type 1 (EV_KEY), code 313 (BTN_TR2), value 0
          Event: time 1581384796.701046, -------------- SYN_REPORT ------------
          Event: time 1581384797.196037, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
          Event: time 1581384797.196037, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
          Event: time 1581384797.196037, -------------- SYN_REPORT ------------
          Event: time 1581384797.450510, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 2
          Event: time 1581384797.450510, -------------- SYN_REPORT ------------
          Event: time 1581384797.451027, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
          Event: time 1581384797.451027, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0
          Event: time 1581384797.451027, -------------- SYN_REPORT ------------
          Event: time 1581384797.946042, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90002
          Event: time 1581384797.946042, type 1 (EV_KEY), code 305 (BTN_EAST), value 1
          Event: time 1581384797.946042, -------------- SYN_REPORT ------------
          Event: time 1581384798.186045, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90002
          Event: time 1581384798.186045, type 1 (EV_KEY), code 305 (BTN_EAST), value 0
          Event: time 1581384798.186045, -------------- SYN_REPORT ------------

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

            no problem if your on your phone ... im sorry for bothring ..

            im sorry if this is all confusing for me

            i swear i followed all the steps 3 times and nothing seems to work for me .... i dont know what im doing wrong

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

              here are a few steps i have followed results ... its mainly just info .. if you could help me compile them correctly ?

              https://dropmefiles.com/1c5dq

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

                Here is a Txt Documents of alll the steps i Tested With no success

                if you could review it a maby make a an easy guide for me .. or if you need more info , then please inform me and i will follow your instructions and provide you info ...

                thank you

                https://dropmefiles.com/7zVui

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