Up |
_CBwiimoteButton Scol 5.x or above required
Define a callback to the wiimote button event.
Prototype :
fun [WiiObj fun [WiiObj u0 I] u1 u0] WiiObj
- WiiObj : a wii object
- fun [WiiObj u0 I] u1 : the callback. Supplemental
argument is a combination of following values
- 1 : button "1"
- 2 : button "2"
- 4 : button "A"
- 8 : button "B"
- 16 : button "+"
- 32 : button "-"
- 64 : button "Up"
- 128 : button "Down"
- 256 : button "Left"
- 512 : button "Right"
- 1024 : button "Home"
- 0 : none
- u0 : an user parameter, at your convenience
Return : WiiObj the same wii object or nil if error.
See also :
Example :