Saturday, June 28, 2008

Wiimote in Elisa

After trying the tutorial for activating the wiimote in linux I saw that there where some parts missing in the wiki. You also need some info from here.

sudo apt-get install wminput libbluetooth2 bluez-utils mouseemu lswm
sudo depmod -a
sudo modprobe uinput
sudo mkdir -p /opt/etc/wiimote

Edit the /opt/etc/wiimote/wminput-elisa file
# This is the /opt/etc/wiimote/wminput-elisa file
Wiimote.A = KEY_ENTER
Wiimote.B = KEY_SPACE
Wiimote.Up = KEY_UP
Wiimote.Down = KEY_DOWN
Wiimote.Left = KEY_LEFT
Wiimote.Right = KEY_RIGHT
Wiimote.Minus = KEY_UP
Wiimote.Plus = KEY_DOWN
Wiimote.Home = KEY_F23
Wiimote.1 = KEY_SPACE
#Wiimote.2 = KEY_Q

Check that the wiimote is working
lswm

and start the wiimote as a remote control
wminput -w -c /opt/etc/wiimote/wminput-elisa

No comments: