Because people asked for it.
(it's useful untill loginer posts a flawless one and semiflames everyone.)
X (keyboard) = Swing/tilt Wiimote or press B
Space (keyboard) = Swing/tilt Nunchuk or press Z
The thumbstick moves the cursor to the edges of the screen, for spinners.
Plus sets a custom cursor position and A goes to it.
ESC (keyboard) = Home
Copy this into GlovePIE:
(it's useful untill loginer posts a flawless one and semiflames everyone.)
X (keyboard) = Swing/tilt Wiimote or press B
Space (keyboard) = Swing/tilt Nunchuk or press Z
The thumbstick moves the cursor to the edges of the screen, for spinners.
Plus sets a custom cursor position and A goes to it.
ESC (keyboard) = Home
Copy this into GlovePIE:
//X (keyboard) = Swing/tilt Wiimote or press B
//Space (keyboard) = Swing/tilt Nunchuk or press Z
//The thumbstick moves the cursor to the edges of the screen, for spinners.
//Plus sets a custom cursor position and A goes to it.
//ESC (keyboard) = Home
var.1 = (-5 < wiimote.Nunchuk.JoyX < -0.5) and var.15=0 and var.45=0
var.15 = (-5 < wiimote.Nunchuk.JoyX < -0.5) and (0.5 < wiimote.Nunchuk.JoyX < 5)
var.2 = (0.5 < wiimote.Nunchuk.JoyX < 5) and var.25=0 and var.15=0
var.25 = (0.5 < wiimote.Nunchuk.JoyX < 5) and (0.5 < wiimote.Nunchuk.Joyy < 5)
var.3 = (-5 < wiimote.Nunchuk.Joyy < -0.5) and var.35=0 and var.25=0
var.35 = (-5 < wiimote.Nunchuk.Joyy < -0.5) and (0.5 < wiimote.Nunchuk.Joyy < 5)
var.4 = (0.5 < wiimote.Nunchuk.Joyy < 5) and var.45=0 and var.35=0
var.45 = (0.5 < wiimote.Nunchuk.Joyy < 5) and (-5 < wiimote.Nunchuk.JoyX < -0.5)
var.5 = 0 //<<<For some reason, 0 on it's own doesn't work for me.
if wiimote.plus
var.mouseposx = var.mousex
var.mouseposy = var.mousey
endif
var.x = wiimote.RawforceX + 7 < -9
x = var.x or wiimote.b
var.sp = wiimote.Nunchuk.RawForcey > 100
keyboard.space = var.sp or wiimote.Nunchuk.ZButton
keyboard.escape = wiimote.home
var.p = wiimote.a //<<<<<dunno if it's important or not, but I can't be bothered to change it.
if var.1 > var.5 and var.2 = 0 and var.3 = 0 and var.4 = 0
mouse.x = 0
mouse.y = 0.5
endif
if var.1 > var.5 and var.3 > var.5
mouse.x = 0
mouse.y = 0
endif
if var.1 > var.5 and var.4 > var.5
mouse.x = 0
mouse.y = 1
endif
if var.2 > var.5 and var.1 = 0 and var.3 = 0 and var.4 = 0
mouse.x = 1
mouse.y = 0.5
endif
if var.2 > var.5 and var.3 > var.5
mouse.x = 1
mouse.y = 0
endif
if var.2 > var.5 and var.4 > var.5
mouse.x = 1
mouse.y = 1
endif
if var.3 > var.5 and var.2 = 0 and var.1 = 0 and var.4 = 0
mouse.x = 0.5
mouse.y = 0
endif
if var.4 > var.5 and var.2 = 0 and var.3 = 0 and var.1 = 0
mouse.x = 0.5
mouse.y = 1
endif
if var.p = 1
mouse.x = var.mouseposx
mouse.y = var.mouseposy
endif
Wiimote.Led1 = var.sp
Wiimote.Led2 = var.x
Wiimote.Led3 = var.x
Wiimote.Led4 = var.sp
var.mousex = mouse.x
var.mousey = mouse.y
var.rawy = wiimote.rawforcey