Dienstag, 31. Mai 2011

How to play Minecraft with a Wiimote

How to set up Bluetooth correctly

  1. sudo apt-get install bluez-utils libopenobex1 wmgui wminput
  2. sudo /etc/init.d/bluetooth restart
  3. sudo modprobe uinput
  4. sudo su
    echo "uinput" >> /etc/modules

Edit the file /etc/cwiid/wminput/minecraft eg. with sudo gedit /etc/cwiid/wminput/minecraft and copy and paste the code below. You could also save this file as /etc/cwiid/wminput/minecraft
Now start wminput: sudo wminput -c minecraft -w

Pointing does not work but I'm figuring it out ;)
I think the key assignment is self-explanatory.
#Head Movement
Plugin.acc.X = REL_X
Plugin.acc.Y = REL_Y
#Body Movement
Plugin.nunchuk_stick2btn.Up = KEY_W
Plugin.nunchuk_stick2btn.Down = KEY_S
Plugin.nunchuk_stick2btn.Left = KEY_A
Plugin.nunchuk_stick2btn.Right = KEY_D
#Left Mouse Button, Right Mouse Button and Space
Wiimote.B = BTN_LEFT
Nunchuk.Z = BTN_RIGHT
Wiimote.A = KEY_SPACE
Wiimote.Home = KEY_E
Wiimote.2 = KEY_ESC

3 Kommentare:

Agent 001 hat gesagt…

Now this is what I call a mod!

Moobeat hat gesagt…

i would so do this if i knew i wouldnt blow up my computer just by looking at it

Mark hat gesagt…

Damn. Tried this with the usb dongle from a wireless mouse but sadly (and kinda as expected) it didn't work :(

Kommentar veröffentlichen