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<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/pad.h> 19 20#define PADButtonDown(buttonLast, button) \ 21 (((buttonLast) ^ (button)) & (button)) 22</pre></dd></dl> 23 24<h2>Arguments</h2> 25<TABLE class="arguments" border="1" > 26 <tr> 27<TH>buttonLast</TH> 28<TD>Previous button status returned in <A href="PADStatus.html"><CODE>PADStatus</CODE></A> by using <A href="PADRead.html"><CODE>PADRead</CODE></A>.</TD> 29 </tr> 30 <tr> 31<TH>button</TH> 32<TD>Current button status returned in <A href="PADStatus.html"><CODE>PADStatus</CODE></A> by using <A href="PADRead.html"><CODE>PADRead</CODE></A>.</TD> 33 </tr> 34</TABLE> 35 36<h2>Return Values</h2> 37<p>Logical OR of the pad button bits for the buttons that have just been 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 class="reference"> 44<a href="PADButtonUp.html">PADButtonUp</a>, 45<a href="PADInit.html">PADInit</a>, 46<a href="PADRead.html">PADRead</a>, 47<a href="PADStatus.html">PADStatus</a> 48</p> 49 50<H2>Revision History</H2> 51<P> 522006/03/01 Initial version.<br> 53</P> 54 55<hr><p>CONFIDENTIAL</p></body> 56</html>