How to use the Official GameCube Controller Adapter for Wii U in Dolphin: Difference between revisions

Jump to navigation Jump to search
→‎Linux: Clarifying some steps and adding instructions on getting it working in the flatpak
(Mention more clearly that third-party adapters are supported, mention Switch, remove dead link)
(→‎Linux: Clarifying some steps and adding instructions on getting it working in the flatpak)
Line 8: Line 8:
Linux support does not require any special drivers, as long as Dolphin was built with libusb support. However, a udev rule must be created to allow access to the device.
Linux support does not require any special drivers, as long as Dolphin was built with libusb support. However, a udev rule must be created to allow access to the device.


Paste the following in the '''/etc/udev/rules.d/51-gcadapter.rules''' file (/lib/udev/rules.d/51-gcadapter.rules if making a package):
Inside of the location '''/etc/udev/rules.d/''' (/lib/udev/rules.d/51-gcadapter.rules if making a package), paste the following into the '''51-gcadapter.rules''' file and save it; if the file does not already exist, then create a new empty file with that file name:
 
<code>SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="0666"</code>
<code>SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="0666"</code>


Reload udev rules with:
Either restart your PC or reload udev rules with the following terminal command:
<code>sudo udevadm control --reload-rules</code>
<code>sudo udevadm control --reload-rules</code>


Then re-insert the adapter. Dolphin should now detect it in the controller settings (refer to [[#Dolphin Setup]] below).
If you did not restart your PC, then also re-insert the adapter.
 
Dolphin should now detect it in the controller settings (refer to [[#Dolphin Setup]] below). If you are using the flatpak version of Dolphin, then you must however launch Dolphin as root every time in order for it to properly use the adapter; this can be done with the following terminal command:
<code>sudo -i /usr/bin/flatpak run --command=/app/bin/dolphin-emu-wrapper org.DolphinEmu.dolphin-emu</code>


If you want to change the rule, links for instructions are available on the [https://github.com/libusb/libusb/wiki/FAQ#Can_I_run_libusb_applications_on_Linux_without_root_privilege libusb FAQ].
If you want to change the rule, links for instructions are available on the [https://github.com/libusb/libusb/wiki/FAQ#Can_I_run_libusb_applications_on_Linux_without_root_privilege libusb FAQ].

Navigation menu