Joystick Struct Reference

This structure is a part of the Nunchuks, CPads structs. (Joystick). More...

#include <ML_input.h>

Data Fields

float Angle
float Magnitude

Detailed Description

This structure is a part of the Nunchuks, CPads structs. (Joystick).

Angle is relative to the positive y-axis into quadrant I and ranges from 0 to 360 degrees. So if the joystick is held straight upwards then angle is 0 degrees. If it is held to the right it is 90, down is 180, and left is 270.
Magnitude is the distance from the center to where the joystick is being held. The magnitude ranges from 0 to 1. If the joystick is only slightly tilted from the center the magnitude will be low, but if it is closer to the outter edge the value will be higher. (from Wiiuse documentation)


Field Documentation

Angle from 0 to 360

Magnitude from 0 to 1


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Defines

Generated on Wed Jan 19 18:15:34 2011 for MLlib by  doxygen 1.6.1