| 1 | |
| 2 | <refentry id="wiisend"> |
| 3 | <indexterm id="Indexwiisend"><primary>wiisend</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>wiisend</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>wiisend</refname> |
| 11 | <refpurpose> |
| 12 | Sends data to one of a number of external Nintendo Wiimote controllers. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para>Plugin opcode in wiimote. This opcode is part of the plugin repository and has to be installed separately. |
| 19 | The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para> |
| 20 | <para> |
| 21 | Sends data to one of a number of external Nintendo Wiimote controllers. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>kres <command>wiisend</command> kcontrol, kvalue[, knum]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | This opcode must be used in conjuction with |
| 34 | a running <emphasis>wiiconnect</emphasis> opcode. |
| 35 | </para> |
| 36 | |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <note> |
| 42 | <para> |
| 43 | Please note that these opcodes are currently only supported on |
| 44 | Linux. |
| 45 | </para> |
| 46 | </note> |
| 47 | <para> |
| 48 | <emphasis>kcontrol</emphasis> -- the code for which control to write. |
| 49 | </para> |
| 50 | <para> |
| 51 | <emphasis>kvalue</emphasis> -- the value to write to the control. |
| 52 | </para> |
| 53 | <para> |
| 54 | <emphasis>knum</emphasis> -- the number of the which Wiimote to |
| 55 | access, which defaults to the first one (zero). |
| 56 | </para> |
| 57 | <para> |
| 58 | On each access a particular data item of the Wiimote is written. |
| 59 | The currently implemented controls are given below, together with |
| 60 | the macro name defined in the file <emphasis>wii_mac</emphasis>: |
| 61 | </para> |
| 62 | <para> |
| 63 | 3 (WII_RUMBLE): starts or stops the Wiimote rumbling, depending |
| 64 | on the value of <emphasis>kvalue</emphasis> (0 to stop, 1 to start). |
| 65 | </para> |
| 66 | <para> |
| 67 | 4 (WII_SET_LEDS): set the four LED lights on the Wiimote to the |
| 68 | binary representation of <emphasis>kvalue</emphasis>. |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Examples</title> |
| 74 | <para> |
| 75 | See the example for <link linkend="wiiconnect"><citetitle>wiiconnect</citetitle></link>. |
| 76 | </para> |
| 77 | </refsect1> |
| 78 | |
| 79 | <refsect1> |
| 80 | <title>See Also</title> |
| 81 | <para><link linkend="nonMIDIdevices"><citetitle>non-MIDI Devices</citetitle></link></para> |
| 82 | </refsect1> |
| 83 | |
| 84 | <refsect1> |
| 85 | <title>Credits</title> |
| 86 | <para> |
| 87 | <simplelist> |
| 88 | <member>Author: &namejohn;</member> |
| 89 | <member>Codemist Ltd</member> |
| 90 | <member>2009</member> |
| 91 | </simplelist> |
| 92 | </para> |
| 93 | <para>New in version 5.11</para> |
| 94 | </refsect1> |
| 95 | </refentry> |