Wii Linux Controller
From Performous
Installation and configuration of cwiid : the linux wiimote driver
Contents |
General notes
The cwiid driver in the Ubuntu 9.10 repository doesn't work with the GHWT Guitar, you need to install the driver from the GIT repository.
Install the driver
Extract the code of the repository and compile it :
git clone git://github.com/folg/cwiid.git make sudo make install
If the uinput module is not loaded :
sudo modprobe uinput
Edit the configuration file for the guitar
You need to add the file wiiguitar in /etc/cwiid/wminput/
#buttons Wiimote.A = BTN_LEFT Wiimote.B = BTN_RIGHT Wiimote.Up = KEY_UP Wiimote.Down = KEY_DOWN Wiimote.Left = KEY_LEFT Wiimote.Right = KEY_RIGHT Wiimote.Minus = KEY_BACK Wiimote.Plus = KEY_FORWARD Wiimote.Home = KEY_HOME Wiimote.1 = KEY_PROG1 Wiimote.2 = KEY_PROG2 Plugin.led.Led4 = 1 # Profil wiiguitar Classic.A = KEY_F1 Classic.B = KEY_F2 Classic.X = KEY_F3 Classic.Y = KEY_F4 Classic.ZL = KEY_F5 Classic.Down = KEY_ENTER Classic.Up = KEY_ENTER Classic.Minus = KEY_F6 #Classic.Dpad.X = ABS_X #Classic.Dpad.Y = ABS_Y #Classic.LStick.X = ABS_HAT0X #Classic.LStick.Y = ABS_HAT0Y #Classic.RStick.X = ABS_HAT1X #Classic.RStick.Y = ABS_HAT1Y #Classic.Plus = BTN_START #Classic.Home = BTN_MODE #Classic.L = BTN_TL #Classic.R = BTN_TR #Classic.ZR = BTN_TR2
If you are lefty you can inverse KEY_F1 with KEY_F5 and KEY_F2 with KEY_F4
Start the driver
And launch :
wminput -c /etc/cwiid/wminput/wiiguitar
You can now launch Performous.
