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>WPADButtonUp</title> 10</head> 11 12<body> 13 14<h1>WPADButtonUp</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20 <dd><pre><code>#include <revolution/wpad.h></code></pre> 21 </dd> 22 <dd><pre><CODE>#define WPADButtonUp( buttonLast, button ) \ 23 ( (u16) (((buttonLast) ^ (button)) & (buttonLast)) ) 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 just released.</p> 42<H2>Description</H2> 43<P>This function verifies whether button(s) have been released.</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> 522005/08/04 Modified C Specification.<br>2005/08/01 Initial version.<BR> 53</P> 54<hr> 55<P>CONFIDENTIAL</p> 56</BODY> 57</HTML>