ScummVM Controlller Issues
-
ok here goes, from what i was able to test it does work on my system and it does over ride whatever preconfiged controls
in the rom/scummvm folder open the
+start scummvm.sh
and add this line under the#!/bin/bash
but before anything elsesudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg &
dont forget to change the event number to match yours
now in the config folder go to the all folder and make a new folder named
xdrive
in there make a new file called
scumm.cfg
in there paste this[xboxdrv] silent=true deadzone=4000 deadzone-trigger=15% dpad-as-button=false trigger-as-button=true detach-kernel-driver=true #force-feedback=true mimic-xpad=true [evdev-absmap] ABS_X=x1 ABS_Y=y1 ABS_Z=x2 ABS_RZ=y2 ABS_HAT0X=dpad_x ABS_HAT0Y=dpad_y [evdev-keymap] BTN_SOUTH=a BTN_EAST=b BTN_NORTH=x BTN_WEST=y BTN_TL=lb BTN_TL2=lt BTN_TR=rb BTN_TR2=rt BTN_SELECT=back BTN_START=start BTN_THUMBL=tl BTN_THUMBR=tr [ui-axismap] x1=KEY_LEFT:KEY_RIGHT y1=KEY_DOWN:KEY_UP dpad_x=REL_X:10 dpad_y=REL_Y:10 [ui-buttonmap] a=BTN_LEFT b=KEY_LEFTCTRL x=KEY_ENTER y=KEY_R lb=KEY_C lt=KEY_A rb=KEY_SPACE rt=KEY_D back=KEY_F5 start=KEY_ESC tr=KEY_K tl=KEY_Y # EOF #
now of corse you need to change the buttons to mactch your controller.
these are from my setupthere will be some fine tuning that you will need to do, but this i hope should get you to work.
-
Question :
How do you create a new folder "xdrive" in command ?
I made a mistake and
Sudo nano xdrive ( sudo nano means txt from what I found out )
How do you create a new folder ?
-
mkdir /opt/retropie/configs/all/xdrive
to make the config file
then sudo nano /opt/retropie/configs/all/xdrive/scumm.cfgi just network into mine from the computer and use explorer to do most of everything
so i just right click for everything, lol -
@ExarKunIv said in ScummVM Controlller Issues:
[xboxdrv]
silent=true
deadzone=4000
deadzone-trigger=15%
dpad-as-button=false
trigger-as-button=true
detach-kernel-driver=true
#force-feedback=true
mimic-xpad=true[evdev-absmap]
ABS_X=x1
ABS_Y=y1
ABS_Z=x2
ABS_RZ=y2
ABS_HAT0X=dpad_x
ABS_HAT0Y=dpad_y[evdev-keymap]
BTN_SOUTH=a
BTN_EAST=b
BTN_NORTH=x
BTN_WEST=y
BTN_TL=lb
BTN_TL2=lt
BTN_TR=rb
BTN_TR2=rt
BTN_SELECT=back
BTN_START=start
BTN_THUMBL=tl
BTN_THUMBR=tr[ui-axismap]
x1=KEY_LEFT:KEY_RIGHT
y1=KEY_DOWN:KEY_UP
dpad_x=REL_X:10
dpad_y=REL_Y:10[ui-buttonmap]
a=BTN_LEFT
b=KEY_LEFTCTRL
x=KEY_ENTER
y=KEY_R
lb=KEY_C
lt=KEY_A
rb=KEY_SPACE
rt=KEY_D
back=KEY_F5
start=KEY_ESC
tr=KEY_K
tl=KEY_YEOF
[evdev-absmap] ABS_X=x1 ABS_Y=y1 ABS_Z=x2 ABS_RZ=y2 ABS_HAT0X=dpad_x ABS_HAT0Y=dpad_y
i dont understand ... how to change it to mine , can you help me
-
@escc1986
that part you dont have too. i tested it with my dpad since they where call the same as yours -
BTN_SOUTH=a BTN_EAST=b BTN_NORTH=x BTN_WEST=y BTN_TL=lb BTN_TL2=lt BTN_TR=rb BTN_TR2=rt BTN_SELECT=back BTN_START=start BTN_THUMBL=tl BTN_THUMBR=tr
&
--evdev-keymap KEY_#304=a,KEY_#305=b,KEY_#307=x,KEY_#308=y,KEY_#310=tl,KEY_#311=tr,KEY_#312=select,KEY_#313=start
i just replace with my numbers
example: Key_#304=a
-
that should work,
if not
this is what the buttons are called when you press then vs what you are pressing.
example you dont want this
BTN_START=start
. you want thisBTN_TR2=start
[evdev-keymap] BTN_SOUTH=a BTN_EAST=b BTN_NORTH=x BTN_WEST=y BTN_TL=lb BTN_TL2=lt BTN_TR=rb BTN_TR2=rt BTN_SELECT=back BTN_START=start BTN_THUMBL=tl BTN_THUMBR=tr
and
this is what you want the buttons to do
[ui-buttonmap] a=BTN_LEFT b=KEY_LEFTCTRL x=KEY_ENTER y=KEY_R lb=KEY_C lt=KEY_A rb=KEY_SPACE rt=KEY_D back=KEY_F5 start=KEY_ESC tr=KEY_K tl=KEY_Y
now i have a bunch of things you dont need so just delete them as you go.
-
[xboxdrv] silent=true deadzone=4000 deadzone-trigger=15% dpad-as-button=false trigger-as-button=true detach-kernel-driver=true #force-feedback=true mimic-xpad=true [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 =lb =lt =rb =rt KEY_#312=back KEY_#313=start KEY_#310=tl KEY_#311=tr [ui-axismap] x1=KEY_LEFT:KEY_RIGHT y1=KEY_DOWN:KEY_UP dpad_x=REL_X:10 dpad_y=REL_Y:10 [ui-buttonmap] a=BTN_LEFT b=BTN_RIGHT x=KEY_ENTER y= lb= lt= rb= rt= back=KEY_F5 start=KEY_ESC tr= tl= # EOF #
How does it look by you ?
if this looks ok ....
where do i put this config in the scumm.config
then what would i need to do
reboot and try game , right ?
-
this method didnt work for me
it was the same like before
dpad didnt work
L = space
R= f2
-
let me try the other way you suggeted
-
unfortunately
same as before
dpad didnt work
L = space
R= f2
Anything Else we could try
-
@ExarKunIv said in ScummVM Controlller Issues:
+start scummvm.sh
#!/bin/bash sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg & game="$1" pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game while read id desc; do echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm" done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3) popd >/dev/null
this is my +Start ScummVM.sh
-
i tried this method many times , no luck
i hope im doing it right
-
@escc1986
you put scumm.cfg in the xdrive folder
and you +Start ScummVM.sh looks good leave itRemove everything that you don,t have a key assigned to for both the keymap and buttonmap
i will try you config tomroow when im at work, thats where my system is at. and ill let you know what i find out
[evdev-keymap] KEY_#304=a KEY_#305=b KEY_#307=x KEY_#308=y =lb =lt =rb =rt KEY_#312=back KEY_#313=start KEY_#310=tl KEY_#311=tr [ui-axismap] x1=KEY_LEFT:KEY_RIGHT y1=KEY_DOWN:KEY_UP dpad_x=REL_X:10 dpad_y=REL_Y:10 [ui-buttonmap] a=BTN_LEFT b=BTN_RIGHT x=KEY_ENTER y= lb= lt= rb= rt= back=KEY_F5 start=KEY_ESC tr= tl=
-
alright , no problem
still hasnt worked for me
thank you for trying to help me
i'll talk to you tommrow
-
all i did was remove the empty buttons
this is what i ended up withthis is the scumm.cfg. that is in the config/all/xdrive folder
[xboxdrv] silent=true deadzone=4000 deadzone-trigger=15% dpad-as-button=false trigger-as-button=true detach-kernel-driver=true #force-feedback=true mimic-xpad=true [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=back KEY_#313=start KEY_#310=tl KEY_#311=tr [ui-axismap] x1=KEY_LEFT:KEY_RIGHT y1=KEY_DOWN:KEY_UP dpad_x=REL_X:10 dpad_y=REL_Y:10 [ui-buttonmap] a=BTN_LEFT b=BTN_RIGHT x=KEY_ENTER back=KEY_F5 start=KEY_ESC # EOF #
and it works for me.
so as long as you have your +Start ScummVM.sh looking like this that is in the roms/scummvm folder
#!/bin/bash sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv >> /dev/shm/runcommand.log 2>&1 --evdev /dev/input/event0 --config /opt/retropie/configs/all//xdrive/scumm.cfg & game="$1" pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" $game while read id desc; do echo "$desc" > "/home/pi/RetroPie/roms/scummvm/$id.svm" done < <(/opt/retropie/emulators/scummvm/bin/scummvm --list-targets | tail -n +3) popd >/dev/null
and the button maps named as
scumm.cfg
and saved inconfigs/all//xdrive
everything should work fine. other then that i dont know.
when you start a game run
cat /proc/bus/input/devices
you should have your controller and then a new one calledMicrosoft X-Box 360 pad
then you know the file is starting.
if not then it is not seeing something.we'll go from there
-
Hi , Good Morning
so i revised the changes ...
changed everything how it should be
i reboot
now i enter the game in scumm and it doesnt run
it doesnt start , any idea ?
(wait i belive i made a mistake , when you mentioned the scumm.sh file , where is that file located ?)
-
it should be in the
config/all/xdrive
folder.(now you can have it where ever you want in the
all
folder. you will just have to tell thestart-scumm.sh
where to look -
im sorry i edited the wrong scumm file
would you be so kind to send me a copy of the +Start ScummVM.sh file
im sorry for the mistake
-
i may have not understood ,
so in my xdrive folder
/opt/retropie/configs/all/xdrive
the 2 files i should have are
scumm.cfg
( i only have a scumm.cfg)
i will make a scumm.sh wilth you content you provided , i applogize)
hope you abel to send me a copy of +Start ScummVM.sh (i messed mine up)
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.