wiisend — Sends data to one of a number of external Nintendo Wiimote controllers.
Note | |
---|---|
Please note that these opcodes are currently only supported on Linux. |
kcontrol -- the code for which control to write.
kvalue -- the value to write to the control.
knum -- the number of the which Wiimote to access, which defaults to the first one (zero).
On each access a particular data item of the Wiimote is written. The currently implemented controls are given below, together with the macro name defined in the file wii_mac:
3 (WII_RUMBLE): starts or stops the Wiimote rumbling, depending on the value of kvalue (0 to stop, 1 to start).
4 (WII_SET_LEDS): set the four LED lights on the Wiimote to the binary representation of kvalue.