ScummVM Controlller Issues
-
you will be doing your work in the runcommand.onstart
-
kind of confused .... so i
sudo nano /opt/retropie/configs/all/runcommand-onstart.sh
(This template)
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_[•]=dpad_x,ABS_[•]=dpad_y
--evdev-keymap BTN_[•]=a,BTN_[•]=b,BTN_[•]=x,BTN_[•]=y,BTN_[•]=lb,BTN_[•]=rb,BTN_[•]=back,BTN_[•]=start
--dpad-only
--ui-axismap lt=void,rt=void
--ui-buttonmap tl=void,tr=void,guide=void
& -
close
you need this on the top or it will not know when to start the mappingif [ "$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/by-id/[•] \
-
https://retropie.org.uk/docs/Universal-Controller-Calibration-&-Mapping-Using-xboxdrv/
go to the
Key-Mapping For Individual Emulators part to get a start on how the runcommand needs to look like
but for now i think you should just put your mapping in a txt on your computer.
there are ways to test it before you setup the run command
-
not sure what to put here
--evdev /dev/input/by-id/[•] \
(the dot)
-
@escc1986
just use the event and the number so for you it will be event0
i could never get the id-to workthink you could send me a link or something for your controller.
when you posted the event codes there are alot more buttons then i would of thought for a NES -
--evdev /dev/input/by-id/event0 \
like so ?
-
@escc1986 said in ScummVM Controlller Issues:
~~--evdev /dev/input/by-id/event0 ~~
--evdev /dev/input/event0 \
-
my mistake , thank you ...
will send you the link now of my controller ...
is this ok :
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/even0
--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_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
& -
@escc1986 said in ScummVM Controlller Issues:
my mistake , thank you ...
will send you the link now of my controller ...
is this ok :
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/even0
--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_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
&need to fix the event. should be
event0 \
-
ok i lied , there are 2 other buttons on the top an L and an R , im sorry i didnt include them ... i just wanted it to be simple with less buttons to map
controller link
-
thats fine, i was just looking at it and was theres alot here. lol
-
sorry should of sent this
-
it all good, lol
--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 \
this is your keymap for the controller.
now with
--ui-buttonmap a=BTN_LEFT,b=BTN_RIGHT,start=KEY_F5,back=KEY_ESC \
you map what said buttons will do
again im still messing with the dpad
-
@ExarKunIv said in ScummVM Controlller Issues:
#!/bin/sh
Thank you ... as of right now .. it should look like this right ?
#!/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_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 a=BTN_LEFT,b=BTN_RIGHT,start=KEY_F5,back=KEY_ESC
&
f1 -
i dont know why
the
/
isnt coming after event0 /
when i post the template
it doesnt matter ... only matters when i really save it on the pi
thanks for pointing that mistake out to me
-
when you post something like that
put ```
before and after
then it will come up with the colored box around itlike this
just to help
-
@ExarKunIv said in ScummVM Controlller Issues:
like this ``` like this humm didnt work for me ''' i donkt know .. i guess it doesnt matter ... sorry for the bother ohhhhh got it !!!! '''
-
@escc1986 nice
-
Thank you
so with that button modiyfed
it didnt seem to work
i pasted it
i rebooted
and its the same
the buttons
start doesn not work
select doesnt not work
B button works for left mouse click
A Does not work
with the new button lay out it didnt change anything ... i dont know .. werid
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.