1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 7<title>KPADSetButtonProcMode</title> 8</head> 9 10<body> 11 12<h1>KPADSetButtonProcMode</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <revolution/kpad.h> 17 18#define KPAD_BUTTON_PROC_MODE_LOOSE 0 19#define KPAD_BUTTON_PROC_MODE_TIGHT 1 20 21void KPADSetButtonProcMode( s32 chan, u8 mode ); 22</pre></dd></dl> 23 24<h2>Arguments</h2> 25<TABLE class="arguments" border="1" > 26 <TBODY> 27 <TR> 28<TH>chan</TH> 29<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 30 </TR> 31 <TR> 32<TH>mode</TH> 33<TD>Either <code>KPAD_BUTTON_PROC_MODE_LOOSE</code> or <code>KPAD_BUTTON_PROC_MODE_TIGHT</code>.</TD> 34 </TR> 35 </TBODY> 36</TABLE> 37 38<h2>Return Values</h2> 39<p> 40None. 41</p> 42 43<H2>Description</H2> 44<p> 45Sets the method by which the button status stored in the <code>WPADStatus</code> structure should be processed inside the <a href="./KPADRead.html"><code>KPADRead</code></a> function. 46</p> 47<p> 48When the <a href="./KPADRead.html"><code>KPADRead</code></a> function is called, th existing KPAD library copies the button status stored in the most recent <code>WPADStatus</code> structure into the <code>KPADStatus</code> structure within the ring buffer. If the button status at the time of the previous call is the same as the button status at the time of the current call and button status has changed midway, that change cannot be obtained. A mode has therefore been prepared that allows changes to be obtained even in such cases. 49</p> 50 51<h2>See Also</h2> 52<P> 53<a href="./KPADGetBtnProcMode.html"><CODE>KPADGetButtonProcMode</CODE></a> 54</p> 55 56<H2>Revision History</H2> 57<P> 582008/04/17 Initial version. 59</P> 60 61<hr><p>CONFIDENTIAL</p></body> 62</html> 63