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>PADButtonUp</title>
10</head>
11
12<body>
13
14<h1>PADButtonUp</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/pad.h&gt;</code></pre>
21  </dd>
22<dd><pre><CODE>#define PADButtonUp(buttonLast, button)     \
23(((buttonLast) ^ (button)) &amp; (buttonLast))
24</CODE></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29<TABLE border="1" cellpadding="3" cellspacing="0.1">
30  <tr>
31<TD width="120" bgcolor="#ffffe8"><code><strong><em>buttonLast</em></strong></code></TD>
32<TD width="520">Previous button status returned in <a href="PADStatus.html"><code>PADStatus</code></a> using <a href="PADRead.html"><code>PADRead</code></a>.</TD>
33    </tr>
34  <tr>
35<TD width="120" bgcolor="#ffffe8"><code><strong><em>button</em></strong></code></TD>
36<TD width="520">Current button status returned in <a href="PADStatus.html"><code>PADStatus</code></a> using <a href="PADRead.html"><code>PADRead</code></a>.</TD>
37    </tr>
38</TABLE>
39<h2>Return Values</h2>
40
41<p>OR logic value for pad button bits of buttons just released.</p>
42<H2>Description</H2>
43<P>This function verifies whether a button or buttons have been released.</P>
44
45<h2>See Also</h2>
46
47<p><a href="toc.html" target="contents">Controller Functions</a>, <code><a href="PADButtonDown.html">PADButtonDown</a></code>, <code><a href="PADInit.html">PADInit</a></code>, <code><a href="PADRead.html">PADRead</a></code>, <code><a href="PADStatus.html">PADStatus</a></code></p>
48<H2>Revision History</H2>
49<P>03/01/2006 Initial version.</P>
50</body>
51</html>