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>KPADEnableAimingMode</title> 8</head> 9 10<body> 11 12<h1>KPADEnableAimingMode</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <revolution/kpad.h> 17 18void KPADEnableAimingMode( s32 chan ); 19</pre></dd></dl> 20 21<h2>Arguments</h2> 22<TABLE class="arguments" border="1" > 23 <TBODY> 24 <TR> 25<TH>chan</TH> 26<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 27 </TR> 28 </TBODY> 29</TABLE> 30 31<h2>Return Values</h2> 32<p> 33None. 34</p> 35 36<H2>Description</H2> 37<p> 38Instructs the KPAD library to calculate the coordinates that are closest to the spot on the TV screen that is being pointed at by the Wii Remote. If this function is called when the Wii Remote is aimed at the center of the TV screen, it will return the coordinates close to (0, 0). (This is now the default.) 39</p> 40 41<p> 42This function is now called automaticallly by the <a href="KPADInit.html"><code>KPADInit</code></a> function. 43</p> 44 45<h2>See Also</h2> 46<p class="reference"> 47<a href="./KPADDisableAimingMode.html">KPADDisableAimingMode</a>, 48<a href="./KPADSetSensorHeight.html">KPADSetSensorHeight</a>, 49<a href="./KPADGetProjectionPos.html">KPADGetProjectionPos</a> 50</p> 51 52<H2>Revision History</H2> 53<p> 542007/01/15 Revised such that the coordinate correction feature is enabled by default.<br>2006/09/07 Initial version.<br> 55</p> 56 57<hr><p>CONFIDENTIAL</p></body> 58</html> 59