1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WPADControlMotor</title>
10</head>
11
12<body>
13
14<h1>WPADControlMotor</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22#define WPAD_CHAN0               0
23#define WPAD_CHAN1               1
24#define WPAD_CHAN2               2
25#define WPAD_CHAN3               3
26
27#define WPAD_MOTOR_STOP          0
28#define WPAD_MOTOR_RUMBLE        1
29
30void WPADControlMotor( s32 chan, u32 command );</CODE></pre>
31  </dd>
32</dl>
33
34<h2>Arguments</h2>
35<TABLE border="1">
36  <TBODY>
37    <TR>
38      <TD><code><b><i>chan</i></b></code></TD>
39      <TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
40    </TR>
41    <TR>
42      <TD><CODE><b><i>command</i></b></CODE></TD>
43      <TD>One of the following: <code>WPAD_MOTOR_STOP</CODE>, <CODE>WPAD_MOTOR_RUMBLE</code>.</TD>
44    </TR>
45  </TBODY>
46</TABLE>
47
48<h2>Return Values</h2>
49
50<p>None.</p>
51<H2>Description</H2>
52<P>Controls the rumble feature for the Wii Remote of the specified channel.</P>
53
54<h2>See Also</h2>
55<p>
56<A href="./toc.html" target="contents"><CODE>WPAD Functions</CODE></A><br> <A href="./WPADStartMotor.html"><CODE>WPADStartMotor</CODE></A><br> <A href="./WPADStopMotor.html"><CODE>WPADStopMotor</CODE></A><br>
57</p>
58
59<H2>Revision History</H2>
60<p>
612007/12/10 Deleted <CODE>WPADEnableMotor</CODE> from the See Also section.<br>2005/10/20 Added <code>WPAD_CHAN<i>n</i></code> macro.<br> 2005/08/01 Initial version.<br>
62</p>
63<hr><p>CONFIDENTIAL</p></body>
64</html>