#include <revolution/kpadOld.h>
typedef struct Vec2{
f32 x;
f32 y;
} Vec2;
typedef struct Rect {
f32 left;
f32 top;
f32 right;
f32 bottom;
} Rect;
void KPADGetProjectionPos( Vec2 *dst, const Vec2 *src, const Rect *projRect, f32 viRatio );
dst |
Pointer to the Vec2 type variable storing the coordinates (in projRect) after conversion. |
src |
Pointer to the Vec2 type variable storing the (normalized) coordinates before conversion. |
projRect |
Rectangle in the projection coordinate system. |
viRatio |
Value of fb_width/vi_width. |
None.
Takes normalized coordinates and performs the calculation for conversion to projection coordinates. This function also performs pixel ratio correction in the horizontal direction. The purpose of this function is to calculate the closest possible value to the coordinate values corresponding to a location on the TV screen actually being pointed to by the Wii Remote.
KPADEnableAimingMode, KPADDisableAimingMode, KPADSetSensorHeight
2006/09/07 Initial version.
2006/10/25 Changed the name from Revolution SDK 2.3 to KPADOld library.
CONFIDENTIAL