_CBnunchukAccel Scol 5.x or above required
Define a callback to the nunchuck acceleration event.
Prototype :
fun [WiiObj fun [WiiObj u0 [F F F] [F F F] [I I]] u1 u0] WiiObj
- WiiObj : a wii object
- fun [WiiObj u0 [F F F] [F F F] [I I]] u1 : the callback. Supplemental arguments are :
- [F F F] : acceleration in x, y and z
- [F F F] : orientation in x, y and z
- [I I] : pitch and roll
- u0 : an user parameter, at your convenience
Return : WiiObj the same wii object or nil if error.
See also :
Example :