ScummVM Controlller Issues
-
im a bit confused , but i will try my best to follow and will report to you all i have done ...
i will await for you reply tomorrow , Thank you for the Help
-
ok , i ran into a problem while following steps ... :
Now that we have all the event codes from the controller, we can begin mapping them to the virtual XBox360 controller in a command that will be added to /etc/rc.local so that it may launch along with RetroPie as it boots up. Below is a template that illustrates the command format. In essence, this command is simply mapping each of the event codes from the physical controller to the virtual XBox360 controller that xboxdrv will create. The specific information gathered from the steps above are marked with [•]. A legend for the virtual Xbox 360 controls can be found here.
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv
--evdev /dev/input/by-id/[•]
--silent
--detach-kernel-driver
--force-feedback
--deadzone-trigger 15%
--deadzone 4000
--mimic-xpad
--evdev-absmap ABS_[•]=x1,ABS_[•]=y1,ABS_[•]=x2,ABS_[•]=y2,ABS_[•]=lt,ABS_[•]=rt,ABS_[•]=dpad_x,ABS_[•]=dpad_y
--evdev-keymap BTN_[•]=a,BTN_[•]=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=tl,BTN_[•]=tr,BTN_[•]=guide,BTN_[•]=back,BTN_[•]=start
&My Controller Map :
Up / Down = ABS_HATOY
Left/Right = ABS_HAT0X
Select = BTN_TL2
Start = BTN_TR2
B = SOUTH
A = EAST
So I Fill in The Blanks
and i get an Error ... not sure what i did wrong ... if you could help me
pi@retropie:~ $ sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \
--evdev /dev/input/event2 \ --silent \ --detach-kernel-driver \ --force-feedback \ --deadzone-trigger 15% \ --deadzone 4000 \ --mimic-xpad \ --dpad-as-button \ --evdev-absmap ABS_HAT0X=x1,ABS_HAT0Y=y1,ABS_HAT0X=x2,ABS_HAT0Y=y2,ABS_NA=lt,ABS_NA=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ --evdev-keymap BTN_SOUTH=a,BTN_EAST=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=tl,BTN_[•]=tr,BTN_[•]=guide,BTN_TL2=back,BTN_TR2=start \ &
[1] 2128
pi@retropie:~ $
-- [ ERROR ] ------------------------------------------------------
error: invalid argument '--evdev-absmap ABS_HAT0X=x1,ABS_HAT0Y=y1,ABS_HAT0X=x2,ABS_HAT0Y=y2,ABS_NA=lt,ABS_NA=rt,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y'
couldn't convert 'ABS_NA' to enum, not a member of EV_ABS -
I ALSO TRYED
"pi@retropie:~ $ 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 \ &
[1] 3463
pi@retropie:~ $
-- [ ERROR ] ------------------------------------------------------
error: invalid argument '--evdev-absmap ABS_HAT0X=dpad_x,ABS_HAY0Y=dpad_y'
couldn't convert 'ABS_HAY0Y' to enum, not a member of EV_ABS" -
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
-
@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=7I: 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=10I: 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 -
@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 ------------ -
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
-
here are a few steps i have followed results ... its mainly just info .. if you could help me compile them correctly ?
-
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
-
@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.
-
Thanks for taking a look , take your time , as i know i provided alot , just hope we can get this controller working :)
-
@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
-
@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 -
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
-
@escc1986 no dont do that
-
just use
sudo nano /etc/rc.local
and removesudo /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
-
Thanks for that , i almost made a big mistake .. thanks for saving me ...
ok i just removed the text
-
@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.
-
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
-
@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
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.