Debian Codegraph @

opcodes/wiiconnect.xml

raw symbols SCIP
1
2 <refentry id="wiiconnect">
3 <indexterm id="Indexwiiconnect"><primary>wiiconnect</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>wiiconnect</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>wiiconnect</refname>
11 <refpurpose>
12 Reads data from 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 Opens and at control-rate polls up to four external Nintendo Wiimote controllers.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ires <command>wiiconnect</command> [itimeout, imaxnum]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>itimeout</emphasis> -- integer number of seconds the
34 system should wait for all Wiimotes to be connected. If not
35 given it defaults to 10 seconds.
36 </para>
37 <para>
38 <emphasis>imaxnum</emphasis> -- maximum number of Wiimotes to locate. If not
39 given it defaults to 4.
40 </para>
41 <para>
42 Initially each Wiimote has its numeric allocation indicated by
43 lighting one of the four LEDs.
44 </para>
45 <para>
46 <emphasis>ires</emphasis> -- return value is 1 if sucess or zero
47 on failure.
48 </para>
49
50
51 </refsect1>
52
53 <refsect1>
54 <title>Performance</title>
55 <note>
56 <para>
57 Please note that these opcodes are currently only supported on
58 Linux.
59 </para>
60 </note>
61 <para>
62 Every control cycle each Wiimote is polled for its status and
63 position. These values are read by
64 the <emphasis>wiidata</emphasis> opcode. The result returned is
65 1 in most cases, but will be zero if a Wiimote disconnects,
66 </para>
67 </refsect1>
68
69 <refsect1>
70 <title>Example</title>
71 <para>
72 Here is an example of the wii opcodes. It uses the file <ulink url="examples/wii.csd"><citetitle>wii.csd</citetitle></ulink>.
73
74 <example>
75 <title>Example of the wii opcodes.</title>
76 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
77 <xi:include href="examples-xml/wii.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
78 </example>
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <title>See Also</title>
84 <para><link linkend="nonMIDIdevices"><citetitle>non-MIDI Devices</citetitle></link></para>
85 </refsect1>
86
87 <refsect1>
88 <title>Credits</title>
89 <para>
90 <simplelist>
91 <member>Author: &namejohn;</member>
92 <member>Codemist Ltd</member>
93 <member>2009</member>
94 </simplelist>
95 </para>
96 <para>New in version 5.11</para>
97 </refsect1>
98 </refentry>