<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>wiirange</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" /> <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="wiidata.html" title="wiidata" /> <link rel="next" href="wiisend.html" title="wiisend" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">wiirange</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="wiidata.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="wiisend.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry"> <a id="wiirange"></a> <div class="titlepage"></div> <a id="Indexwiirange" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">wiirange</span> </h2> <p>wiirange — Sets scaling and range limits for certain Wiimote fields. </p> </div> <div class="refsect1"> <a id="idm281472868470888"></a> <h2>Description</h2> <p> Sets scaling and range limits for certain Wiimote fields. </p> </div> <div class="refsect1"> <a id="idm281472868427032"></a> <h2>Syntax</h2> <pre class="synopsis"> <span class="command"><strong>wiirange</strong></span> icontrol, iminimum, imaximum[, inum]</pre> </div> <div class="refsect1"> <a id="idm281472868424840"></a> <h2>Initialization</h2> <p> This opcode must be used in conjuction with a running <span class="emphasis"><em>wiiconnect</em></span> opcode. </p> <p> <span class="emphasis"><em>icontrol</em></span> -- which control is to be scaled. This must be one of 20 (WII_PITCH), 21 (WII_ROLL), 30 (WII_NUNCHUK_PITCH), 31 (WII_NUNCHUK_ROLL). </p> <p> <span class="emphasis"><em>iminimum</em></span> -- minimun value for control. </p> <p> <span class="emphasis"><em>imaximum</em></span> -- maximum value for control. </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Note]" src="images/note.png" /> </td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p> Please note that these opcodes are currently only supported on Linux. </p> </td> </tr> </table> </div> </div> <div class="refsect1"> <a id="idm281472868419592"></a> <h2>Examples</h2> <p> See the example for <a class="link" href="wiiconnect.html" title="wiiconnect"><em class="citetitle">wiiconnect</em></a>. </p> </div> <div class="refsect1"> <a id="idm281472868417400"></a> <h2>See Also</h2> <p> <a class="link" href="wiiconnect.html" title="wiiconnect"><em class="citetitle">wiiconnect</em></a>, <a class="link" href="wiidata.html" title="wiidata"><em class="citetitle">wiidata</em></a>, <a class="link" href="wiisend.html" title="wiisend"><em class="citetitle">wiisend</em></a>, </p> </div> <div class="refsect1"> <a id="idm281472868413336"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: John ffitch</td> </tr> <tr> <td>Codemist Ltd</td> </tr> <tr> <td>2009</td> </tr> </table> <p> </p> <p>New in version 5.11</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="wiidata.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="wiisend.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">wiidata </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> wiisend</td> </tr> </table> </div> </body> </html>