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=utf-8"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>KPADSetMplsZeroDriftMode</title> 9</head> 10 11<body> 12 13<h1>KPADSetMplsZeroDriftMode</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre class="construction"> 17#include <revolution/kpad.h> 18 19typedef enum KPADMplsZeroDriftMode { 20 KPAD_MPLS_ZERODRIFT_LOOSE = 0, 21 KPAD_MPLS_ZERODRIFT_STANDARD, 22 KPAD_MPLS_ZERODRIFT_TIGHT 23} KPADMplsZeroDriftMode ; 24 25void KPADSetMplsZeroDriftMode( s32 chan, KPADMplsZeroDriftMode mode ); 26</pre></dd></dl> 27 28<h2>Arguments</h2> 29<TABLE class="arguments" border="1" > 30 <TBODY> 31 <TR> 32 <TH>chan</TH> 33 <TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</td> 34 </TR> 35 <TR> 36 <TH>mode</TH> 37 <TD>Any one of <CODE>KPAD_MPLS_ZERODRIFT_*</CODE>.</td> 38 </TR> 39 </TBODY> 40</TABLE> 41 42<h2>Return Values</h2> 43<p>None.</p> 44 45<H2>Description</H2> 46<p> 47Sets the zero-point drift correction mode of the specified channel's Wii MotionPlus. These settings are applied to all axes. 48</p> 49<p> 50If <code>KPAD_MPLS_ZERODRIFT_LOOSE</code> is set, correction may be applied even during constant velocity motion, because the Wii MotionPlus value is treated as stable and an attempt is made to apply correction even if the value varies slightly. In such cases, this can be improved by setting a mode that uses stricter conditions. The default is set to <code>KPAD_MPLS_ZERODRIFT_STANDARD</code>. 51</p> 52 53<h2>See Also</h2> 54<p class="reference"> 55<a href="./KPADGetMplsZeroDriftMode.html"><CODE>KPADGetMplsZeroDriftMode</CODE></a><BR> <a href="./KPADInitMplsZeroDriftMode.html"><CODE>KPADInitMplsZeroDriftMode</CODE></a> 56</P> 57 58<H2>Revision History</H2> 59<P> 602008/12/04 Initial version. 61</P> 62 63<hr><p>CONFIDENTIAL</p></body> 64</html>