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>WPADButtonDown</title>
10</head>
11
12<body>
13
14<h1>WPADButtonDown</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/wpad.h&gt;</code></pre>
21  </dd>
22  <dd><pre><CODE>#define WPADButtonDown( buttonLast, button )   \
23    ((u16) (((buttonLast) ^ (button)) & (button)))
24</CODE></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29<TABLE border="1" >
30  <tr>
31<TD width="120" bgcolor="#ffffe8"><code><b><i>buttonLast</i></b></code></TD>
32<TD>The previous button status.</TD>
33    </tr>
34  <tr>
35<TD width="120" bgcolor="#ffffe8"><code><b><i>button</i></b></code></TD>
36<TD>The most recent button status.</TD>
37    </tr>
38</TABLE>
39<h2>Return Values</h2>
40
41<p>The logical sum of pad button bits for standard controller buttons being pressed.</p>
42<H2>Description</H2>
43<P>This function verifies whether button(s) are being pressed.</P>
44
45<h2>See Also</h2>
46<p>
47<A href="./toc.html" target="contents">WPAD Functions</A><br>
48</p>
49
50<H2>Revision History</H2>
51<p>2005/08/01 Initial version.</p>
52<hr>
53<P>CONFIDENTIAL</p>
54</BODY>
55</HTML>