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<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/wpad.h&gt;
19
20#define WPADButtonDown( buttonLast, button )   \
21((u16) (((buttonLast) ^ (button)) &amp; (button)))
22</pre></dd></dl>
23
24<h2>Arguments</h2>
25<TABLE class="arguments" border="1" >
26  <tr>
27<TH>buttonLast</TH>
28<TD>The previous button status.</TD>
29    </tr>
30  <tr>
31<TH>button</TH>
32<TD>The most recent button status.</TD>
33    </tr>
34</TABLE>
35
36<h2>Return Values</h2>
37<p>The logical sum of pad button bits for standard controller buttons being pressed.</p>
38
39<H2>Description</H2>
40<P>This function verifies whether button(s) are being pressed.</P>
41
42<h2>See Also</h2>
43<p>
44None.
45</p>
46
47<H2>Revision History</H2>
48<p>
492005/08/01 Initial version.
50</p>
51
52<hr><p>CONFIDENTIAL</p></body>
53</html>