Inizio  >  Docs  >  Linux  >  How to  >  wiimote  
wiimotewiimote

wiimote ir sensor mouse

sudo /etc/init.d/bluetooth start
sudo /etc/init.d/bluetooth status
#lswm
sudo modprobe uinput
sudo vim /etc/cwiid/wminput/ir_ptr

#ir_ptr
include buttons
#Plugin.ir_ptr.X        = ~ABS_X
Plugin.ir_ptr.X = ABS_X
#Plugin.ir_ptr.Y        = ~ABS_Y
Plugin.ir_ptr.Y = -ABS_Y
#Plugin.ir_ptr.Y        = ABS_TILT_Y

#########################################

wminput -c ir_ptr

To top

wiimote for XBMC

alexanderbjerkan.com

 

<code>hcitool scan
</code>

and press 1 + 2 on your Wiimote. It should return something a lot like

Scanning …

00:19:1D:83:38:FC Nintendo RVL-CNT-01

<code>cd /etc/cwiid/wminput
sudo cp buttons xbmc</code>

Wiimote.A = KEY_KPENTER
Wiimote.B = KEY_ESC
Wiimote.Up = KEY_UP
Wiimote.Down = KEY_DOWN
Wiimote.Left = KEY_LEFT
Wiimote.Right = KEY_RIGHT
Wiimote.Minus = KEY_KPMINUS
Wiimote.Plus = KEY_KPPLUS
Wiimote.Home = KEY_M
Wiimote.1 = KEY_SPACE
Wiimote.2 = KEY_S

<code>sudo sh -c 'echo "KERNEL==\"uinput\", GROUP=\"admin\"" > /etc/udev/rules.d/50-cwiid-input.rules'
sudo /etc/init.d/udev restart</code>

<code>sudo vim /etc/rc.local</code>

sudo modprobe uinput

At last, go to Systems, Preferences, Sessions, Add. Give this new startup program a proper name, and set the command to be

wminput -dc xbmc 00:19:1D:83:38:FC