• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • E
    escc1986
    last edited by escc1986 2 Nov 2020, 19:35 11 Feb 2020, 19:35

    do i add

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

      @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 11 Feb 2020, 19:39

        @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
        • E
          escc1986
          last edited by escc1986 2 Nov 2020, 19:44 11 Feb 2020, 19:43

          interesting ....

          dpad works -moves mouse

          A button works - left mouse click

          b button works - right mouse click

          L - not working

          R - not working

          Select not working

          Start not workings

          .......................................

          its good to see the mouse works and the 2 buttons

          very nice !!!!!

          E 2 Replies Last reply 11 Feb 2020, 19:43 Reply Quote 0
          • E
            ExarKunIv @escc1986
            last edited by 11 Feb 2020, 19:43

            @escc1986 sweet

            now we are getting somewhere

            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
              ExarKunIv @escc1986
              last edited by 11 Feb 2020, 19:44

              @escc1986

              what buttons do you want to do what

              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 2 Nov 2020, 19:46 11 Feb 2020, 19:45

                B = left click

                A = Right click

                Start = space bar

                Select - f5

                please .... Thank you

                E 1 Reply Last reply 11 Feb 2020, 19:47 Reply Quote 0
                • E
                  ExarKunIv @escc1986
                  last edited by ExarKunIv 2 Nov 2020, 19:47 11 Feb 2020, 19:47

                  @escc1986
                  ok

                  run
                  evtest /dev/input/event0

                  press the start and select to test them

                  post what you get

                  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 2 Nov 2020, 19:50 11 Feb 2020, 19:49

                    @ExarKunIv said in ScummVM Controlller Issues:

                    evtest /dev/input/event0

                    
                    Event: time 1581450539.384302, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000a
                    Event: time 1581450539.384302, type 1 (EV_KEY), code 313 (BTN_TR2), value 1
                    Event: time 1581450539.384302, -------------- SYN_REPORT ------------
                    Event: time 1581450539.579279, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9000a
                    Event: time 1581450539.579279, type 1 (EV_KEY), code 313 (BTN_TR2), value 0
                    Event: time 1581450539.579279, -------------- SYN_REPORT ------------
                    Event: time 1581450540.749286, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90009
                    Event: time 1581450540.749286, type 1 (EV_KEY), code 312 (BTN_TL2), value 1
                    Event: time 1581450540.749286, -------------- SYN_REPORT ------------
                    Event: time 1581450540.959255, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90009
                    Event: time 1581450540.959255, type 1 (EV_KEY), code 312 (BTN_TL2), value 0
                    Event: time 1581450540.959255, -------------- SYN_REPORT ------------
                    
                    

                    start is = tr2

                    select is = tl2

                    E 1 Reply Last reply 11 Feb 2020, 19:57 Reply Quote 0
                    • E
                      ExarKunIv @escc1986
                      last edited by 11 Feb 2020, 19:57

                      @escc1986

                      run this

                      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_#312=select,KEY_#313=start \
                      	--ui-axismap dpad_x=REL_X:10,dpad_y=REL_Y:10 \
                      	--ui-buttonmap a=BTN_LEFT,b=BTN_RIGHT,select=KEY_F5,start=KEY_SPACE \
                      	--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
                      

                      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 11 Feb 2020, 20:02

                        @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_#312=select,KEY_#313=start
                        --ui-axismap dpad_x=REL_X:10,dpad_y=REL_Y:10
                        --ui-buttonmap a=BTN_LEFT,b=BTN_RIGHT,select=KEY_F5,start=KEY_SPACE
                        --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

                        Works good :)

                        E 1 Reply Last reply 11 Feb 2020, 20:06 Reply Quote 0
                        • E
                          ExarKunIv @escc1986
                          last edited by 11 Feb 2020, 20:06

                          @escc1986

                          good

                          so you have both a runcommd-onstart and a runcommad-onend file made correct

                          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 2 Nov 2020, 20:08 11 Feb 2020, 20:08

                            i belive so

                            how may i check

                            E 1 Reply Last reply 11 Feb 2020, 20:12 Reply Quote 0
                            • E
                              ExarKunIv @escc1986
                              last edited by 11 Feb 2020, 20:12

                              @escc1986

                              well i know you have the runcommand-onstart i saw the vid

                              put this in the runcommand-onstart

                              #!/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 KEY_#305=a,KEY_#304=b,KEY_#307=x,KEY_#308=y,KEY_#310=tl,KEY_#311=tr,KEY_#312=select,KEY_#313=start
                              --ui-axismap dpad_x=REL_X:10,dpad_y=REL_Y:10
                              --ui-buttonmap a=BTN_LEFT,b=BTN_RIGHT,select=KEY_F5,start=KEY_SPACE
                              --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

                              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 2 Nov 2020, 20:21 11 Feb 2020, 20:20

                                ok , i pasted in runcommand-onstart and rebooted my device

                                just tested it

                                appears as same as before , dpad not working and L is space & R is f5

                                E 1 Reply Last reply 11 Feb 2020, 20:26 Reply Quote 0
                                • E
                                  ExarKunIv @escc1986
                                  last edited by 11 Feb 2020, 20:26

                                  @escc1986

                                  ok so the problem now is getting the game and the script we just made to work together.

                                  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 11 Feb 2020, 20:30

                                    humm interesting , i wonder why they dont work together

                                    E 1 Reply Last reply 11 Feb 2020, 20:34 Reply Quote 0
                                    • E
                                      ExarKunIv @escc1986
                                      last edited by 11 Feb 2020, 20:34

                                      @escc1986
                                      they do
                                      you just need everything on the same page.

                                      IE
                                      correct drivers turned on, correct names ETC....

                                      i use a different method now so i have not messed with it this way in a long time
                                      and you have a bunch of little things you did, which is not wrong but not needed. so they might be giving a problem.

                                      give me a bit i want to try something on my system

                                      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 11 Feb 2020, 20:37

                                        sure , take as much time needed :) ... hope you could figure something out

                                        E 1 Reply Last reply 11 Feb 2020, 20:44 Reply Quote 0
                                        • E
                                          ExarKunIv @escc1986
                                          last edited by ExarKunIv 2 Nov 2020, 20:53 11 Feb 2020, 20:44

                                          @escc1986

                                          so the way i do things now is i have a command that gets ran when i pick a certain game, unlike the way we where just playing with. that way is always running in the back ground in a way waiting for a game that needs is to start and away it goes.

                                          so im hoping that i can get my way to work and we can go from there, cuz i think even with what ever settings or naming that has been done it will not matter.

                                          plus if you get to any other games that need something custom like the games in PORTS. it is very easy to copy and past from one to the other

                                          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
                                          121 out of 168
                                          • First post
                                            121/168
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received