Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?
-
@tebra said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
Only issue left are the analog controls (shoulders and sticks).
Are you trying to configure your triggers to be analog or digital? Personally, I would recommend digital in most cases, although analog is possible. Also, what exactly are the problems you're facing with the stick?
-
I might not be around later, so I thought I'd post the configs I use for my own adapter for you to use as a reference.
Analog Triggers:
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-raphnet.net_GC_N64_to_USB__v2.9_3918-event-joystick \ --detach-kernel-driver \ --force-feedback \ --dpad-as-button \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "Raphnet Gamecube Adapter - Analog Triggers (xboxdrv)" \ --silent \ --calibration X1=-23436:0:26594,Y1=-25693:0:26593,X2=-20521:0:23068,Y2=-24890:0:19246 \ --axismap -Y1=Y1,-Y2=Y2 \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_RZ+=LT,ABS_THROTTLE+=RT \ --evdev-keymap BTN_C=x,BTN_EAST=y,BTN_WEST=a,BTN_NORTH=b,BTN_TR=back,BTN_SOUTH=start,BTN_Z=lb,BTN_TL=rb,BTN_TL2=du,BTN_TR2=dd,BTN_START=dl,BTN_SELECT=dr \ --ui-axismap start+x1=REL_X:10,start+y1=REL_Y:10 \ --ui-buttonmap guide=void,tl=void,tr=void,start+lb=BTN_LEFT,start+rb=BTN_RIGHT
Digital Triggers:
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-raphnet.net_GC_N64_to_USB__v2.9_3918-event-joystick \ --detach-kernel-driver \ --force-feedback \ --dpad-as-button \ --trigger-as-button \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "Raphnet Gamecube Adapter (xboxdrv)" \ --silent \ --calibration X1=-23436:0:26594,Y1=-25693:0:26593,X2=-20521:0:23068,Y2=-24890:0:19246 \ --axismap -Y1=Y1,-Y2=Y2 \ --buttonmap LT=lb,RT=rb \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_RZ+=LT,ABS_THROTTLE+=RT \ --evdev-keymap BTN_C=x,BTN_EAST=y,BTN_WEST=a,BTN_NORTH=b,BTN_TR=back,BTN_SOUTH=start,BTN_Z=lb,BTN_TL=rb,BTN_TL2=du,BTN_TR2=dd,BTN_START=dl,BTN_SELECT=dr \ --ui-axismap start+x1=REL_X:10,start+y1=REL_Y:10 \ --ui-buttonmap guide=void,tl=void,tr=void,start+lb=BTN_LEFT,start+rb=BTN_RIGHT
-
@mediamogul said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
@tebra said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
Only issue left are the analog controls (shoulders and sticks).
Are you trying to configure your triggers to be analog or digital? Personally, I would recommend digital in most cases, although analog is possible. Also, what exactly are the problems you're facing with the stick?
I try to use my GC controler with reicast emulator.
But when I start /opt/retropie/emulators/reicast/bin/reicast-joyconfig it hang at "please move tha analog stick as far left as possible now"
So I suppose that default stick confioguration is not analog. -
@mediamogul said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
I might not be around later, so I thought I'd post the configs I use for my own adapter for you to use as a reference.
Analog Triggers:
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-raphnet.net_GC_N64_to_USB__v2.9_3918-event-joystick \ --detach-kernel-driver \ --force-feedback \ --dpad-as-button \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "Raphnet Gamecube Adapter - Analog Triggers (xboxdrv)" \ --silent \ --calibration X1=-23436:0:26594,Y1=-25693:0:26593,X2=-20521:0:23068,Y2=-24890:0:19246 \ --axismap -Y1=Y1,-Y2=Y2 \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_RZ+=LT,ABS_THROTTLE+=RT \ --evdev-keymap BTN_C=x,BTN_EAST=y,BTN_WEST=a,BTN_NORTH=b,BTN_TR=back,BTN_SOUTH=start,BTN_Z=lb,BTN_TL=rb,BTN_TL2=du,BTN_TR2=dd,BTN_START=dl,BTN_SELECT=dr \ --ui-axismap start+x1=REL_X:10,start+y1=REL_Y:10 \ --ui-buttonmap guide=void,tl=void,tr=void,start+lb=BTN_LEFT,start+rb=BTN_RIGHT
Digital Triggers:
sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-raphnet.net_GC_N64_to_USB__v2.9_3918-event-joystick \ --detach-kernel-driver \ --force-feedback \ --dpad-as-button \ --trigger-as-button \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "Raphnet Gamecube Adapter (xboxdrv)" \ --silent \ --calibration X1=-23436:0:26594,Y1=-25693:0:26593,X2=-20521:0:23068,Y2=-24890:0:19246 \ --axismap -Y1=Y1,-Y2=Y2 \ --buttonmap LT=lb,RT=rb \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_RZ+=LT,ABS_THROTTLE+=RT \ --evdev-keymap BTN_C=x,BTN_EAST=y,BTN_WEST=a,BTN_NORTH=b,BTN_TR=back,BTN_SOUTH=start,BTN_Z=lb,BTN_TL=rb,BTN_TL2=du,BTN_TR2=dd,BTN_START=dl,BTN_SELECT=dr \ --ui-axismap start+x1=REL_X:10,start+y1=REL_Y:10 \ --ui-buttonmap guide=void,tl=void,tr=void,start+lb=BTN_LEFT,start+rb=BTN_RIGHT
So I can use virtual xboxdrv with ToadKing's driver?
-
I accidentally posted my settings for the RaphNet Gamecube adapter. I'll have to dig up my configs for Mayflash after a while. Sorry for the confusion.
-
@tebra said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
when I start /opt/retropie/emulators/reicast/bin/reicast-joyconfig it hang at "please move tha analog stick as far left as possible now"
If I remember correctly, I couldn't get
reicast-joyconfig
to read the analog stick either, but I'm almost certain you can just add the standard axis values to/home/pi/.reicast/emu.cfg
and it will read them normally.I believe the following are the two configs I used with the Mayflash adapter and ToadKing's driver:
Analog Triggers
/opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-mayflash_limited_MAYFLASH_GameCube_Controller_Adapter-event-mouse \ --force-feedback \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "Mayflash GameCube Port 1 (xboxdrv)" \ --silent \ --axismap -Y1=Y1,-Y2=Y2 \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RZ=x2,ABS_Z=y2,ABS_RX=LT,ABS_RY=RT,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ --evdev-keymap BTN_TOP=x,BTN_TRIGGER=y,BTN_THUMB2=a,BTN_THUMB=b,BTN_BASE2=back,BTN_BASE4=start,BTN_TOP2=lb,BTN_PINKIE=rb
Digital Triggers
/opt/retropie/supplementary/xboxdrv/bin/xboxdrv \ --evdev /dev/input/by-id/usb-mayflash_limited_MAYFLASH_GameCube_Controller_Adapter-event-mouse \ --force-feedback \ --trigger-as-button \ --deadzone-trigger 15% \ --deadzone 4000 \ --device-name "Mayflash GameCube Port 1 (xboxdrv)" \ --silent \ --axismap -Y1=Y1,-Y2=Y2 \ --buttonmap LT=lb,RT=rb \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RZ=x2,ABS_Z=y2,ABS_RX=LT,ABS_RY=RT,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ --evdev-keymap BTN_TOP=x,BTN_TRIGGER=y,BTN_THUMB2=a,BTN_THUMB=b,BTN_BASE2=back,BTN_BASE4=start,BTN_TOP2=lb,BTN_PINKIE=rb
-
@mediamogul said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
/dev/input/by-id/
Thank you for your config but I have a problem: my gamepad is not listed on /dev/input/by-id/
Here is the information given by "cat /proc/bus/input/devices" command
I: Bus=0003 Vendor=0000 Product=0000 Version=0000
N: Name="Wii U GameCube Adapter Port 1"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=event2 js0
B: PROP=0
B: EV=20000b
B: KEY=f 0 0 0 0 0 0 0 adb0000 0 0 0 0 0 0 0 0 0
B: ABS=3f
B: FF=50000 0 0I: Bus=0003 Vendor=0000 Product=0000 Version=0000
N: Name="Wii U GameCube Adapter Port 2"
P: Phys=
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=event3 js1
B: PROP=0
B: EV=20000b
B: KEY=f 0 0 0 0 0 0 0 adb0000 0 0 0 0 0 0 0 0 0
B: ABS=3f
B: FF=50000 0 0 -
You can also fall back on using the event numbers as well:
--evdev /dev/input/event2
--evdev /dev/input/event3
-
@mediamogul
Is it possible by N: Name="Wii U GameCube Adapter Port 1" and N: Name="Wii U GameCube Adapter Port 2".
Because if I reboot the rpi3 without my keyboard the event number will change. I'm right? -
@tebra said in Has anyone Gotten the Mayflash Gamecube Adapter to work with Retropie?:
Is it possible by N: Name="Wii U GameCube Adapter Port 1" and N: Name="Wii U GameCube Adapter Port 2".
Sadly no. Those do not actually point to the events.
if I reboot the rpi3 without my keyboard the event number will change. I'm right?
I believe you're right. However, it might help to rearrange the order of your devices in relation to the USB slots to where the keyboard is always seen last.
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.