If your using glove-pie here is my own wiimote script that I use. It doesn't use the IR bar or the motion sensors (with one execption) at all. The reason for this is simply there isn't really a reason for it. The IR mouse pointer control, tho nice, can be buggy at times, and the same can be said for motion sensors. This is designed to be use with the mouse control turned OFF in XBMC.
Controls
D Pad = Arrow Keys
A Button = Select, in move brings up OSD.
B Button = Go back a directory, in move, skip back a bit.
- Button = Go back to main menu, close window, or in movie, go back to list.
+ Button = Bring up context window
1 Button = Page Up
2 Button = Page Down
Menu Button = Go to play list, in move, pause
1 + 2 Buttons = Un/lock wiimote.
Shake Wiimote, display batt level.
Code:
// (UN)LOCK WIIMOTE
if Wiimote.one + Wiimote.two then
if var.lock
var.lock = false
else var.lock = true
wait 500 ms
endif
endif
//CONTROLS (UNLOCKED)
if var.lock = false
Up = Wiimote.Up
Left = Wiimote.Left
Right = Wiimote.Right
Down = Wiimote.Down
Backspace = Wiimote.B
Enter = Wiimote.A
Spacebar = Wiimote.Home
Pageup = wiimote.One
Pagedown = wiimote.Two
C = wiimote.plus
Esc = wiimote.minus
endif
//CONTROLS (LOCKED)
if var.lock = true and (wiimote.up or wiimote.down or wiimote.left or wiimote.right or wiimote.one or wiimote.two or wiimote.minus or wiimote.plus or wiimote.a or wiimote.b or wiimote.home)
wiimote.Rumble = 1
wait 200 ms
wiimote.Rumble = 0
endif
// BATT LEVEL ON SHAKE
if wiimote1.gz > 3
var.shake1 = true
wait 2000 ms
var.shake1 = false
var.count = true
endif
if var.shake1 = true then
if wiimote1.battery > 25
wiimote1.Led1 = true
wait 2000 ms
wiimote1.Led1 = false
endif
if wiimote1.battery > 50
wiimote1.Led1 = true
wiimote1.Led2 = true
wait 2000 ms
wiimote1.Led1 = false
wiimote1.Led2 = false
endif
if wiimote1.battery > 75
wiimote1.Led1 = true
wiimote1.Led2 = true
wiimote1.Led3 = true
wait 2000 ms
wiimote1.Led1 = false
wiimote1.Led2 = false
wiimote1.Led3 = false
endif
if wiimote1.battery > 90
wiimote1.Led1 = true
wiimote1.Led2 = true
wiimote1.Led3 = true
wiimote1.Led4 = true
wait 2000 ms
wiimote1.Led1 = false
wiimote1.Led2 = false
wiimote1.Led3 = false
wiimote1.Led4 = false
endif
endif