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>KPADGetButtonProcMode</title>
8</head>
9
10<body>
11
12<h1>KPADGetButtonProcMode</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/kpad.h&gt;
17
18#define KPAD_BUTTON_PROC_MODE_LOOSE     0
19#define KPAD_BUTTON_PROC_MODE_TIGHT     1
20
21u8 KPADGetButtonProcMode( s32 chan );
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  </TBODY>
32</TABLE>
33
34<h2>Return Values</h2>
35<TABLE class="arguments" border="1" >
36  <TBODY>
37    <TR>
38      <TH>KPAD_BUTTON_PROC_MODE_LOOSE</TH>
39      <TD>As in the past, the most recent button status is copied into the KPADStatus structure in the ring buffer.</TD>
40    </TR>
41    <TR>
42      <TH>KPAD_BUTTON_PROC_MODE_TIGHT</TH>
43      <TD>The button status stored in WPADStatus is copied into the KPADStatus structure in the ring buffer in the order received.</TD>
44    </TR>
45  </TBODY>
46</TABLE>
47
48<H2>Description</H2>
49<p>
50Gets 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.
51</p>
52<p>
53The 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 when the <a href="./KPADRead.html"><code>KPADRead</code></a> function is called. 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.
54</p>
55
56<h2>See Also</h2>
57<p class="reference">
58<a href="./KPADSetBtnProcMode.html">KPADSetButtonProcMode</a>
59</p>
60
61<H2>Revision History</H2>
62<P>
632008/04/17 Initial version.<br>
64</P>
65
66<hr><p>CONFIDENTIAL</p></body>
67</html>
68