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>PADButtonDown</title> 10</head> 11 12<body> 13 14<h1>PADButtonDown</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre><code>#include <revolution/pad.h></code></pre> 21 </dd> 22<dd><pre><CODE>#define PADButtonDown(buttonLast, button) \ 23(((buttonLast) ^ (button)) & (button)) 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>Logical OR of the pad button bits for the buttons that have just been pressed.</p> 42<H2>Description</H2> 43<P>This function verifies whether a button or buttons is/are being pressed.</P> 44 45 46 47 48<h2>See Also</h2> 49 50<p><a href="toc.html" target="contents">Controller Functions</a>, <code><a href="PADButtonUp.html">PADButtonUp</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> 51<H2>Revision History</H2> 52<P>03/01/2006 Initial version.</P> 53</body> 54</html>