nn::hid::CTR Namespace

Description

Namespace for the CTR's HID (Human Interface Device) functionality.
(This can also be written without the ::CTR portion.)

Classes

nn::hid::CTR::Accelerometer Class that contains the resources required for getting sampling data from the accelerometer. Use the nn::hid::CTR::GetAccelerometer function to get a reference to a valid instance.
nn::hid::CTR::AccelerometerReader Class for loading sampling data from the accelerometer.
nn::hid::CTR::DebugPad A class that has the resources necessary to get sampling data from the debug pad (a game controller used for debugging). Call nn::hid::CTR::GetDebugPad to get a reference to a valid instance.
nn::hid::CTR::DebugPadReader Class for loading sampling data from the game controller used for debugging (the debug pad).
nn::hid::CTR::Gyroscope The class with the resources necessary to get sampling data from the gyro sensor. Use the nn::hid::CTR::GetGyroscope function to get a reference to a valid instance of this class.
nn::hid::CTR::GyroscopeReader Class for loading sampling data from the gyro sensor.
nn::hid::CTR::HidBase Base HID class.
nn::hid::CTR::Pad Class that contains the resources required for getting sampling data from the buttons and the Circle Pad. Use the nn::hid::CTR::GetPad function to get a reference to a valid instance.
nn::hid::CTR::PadReader Class for loading sampling data from the game pad (which consists of the buttons and the Circle Pad).
nn::hid::CTR::TouchPanel Class that contains the resources required for getting sampling data from the Touch Screen. Use the nn::hid::CTR::GetTouchPanel function to get a reference to a valid instance.
nn::hid::CTR::TouchPanelReader Class for loading sampling data from the Touch Screen.

Structures

nn::hid::CTR::AnalogStickStatus Structure used to store sampling data from the Circle Pad.
nn::hid::CTR::PadStatus Structure used to store sampling data from the buttons and the Circle Pad.
nn::hid::CTR::TouchPanelStatus Structure used to store sampling data from the Touch Screen.
nn::hid::CTR::AccelerometerStatus Structure used to store sampling data from the accelerometer.
nn::hid::CTR::AccelerationFloat Structure used to store the acceleration (in g's) from the accelerometer.
nn::hid::CTR::Direction Structure storing the 3D attitude.
nn::hid::CTR::GyroscopeStatus Structure for storing the gyro information.
nn::hid::CTR::DebugPadStatus Structure used to store sampling data from the buttons and Circle Pad on the debug pad.

Enumerated Types

ZeroDriftMode Enumerated type for setting the strength of the correction for zero-point drift.

Constants

MAX_OF_ACCELEROMETER_VALUE Absolute value of the maximum value that the accelerometer can detect.
ACCELEROMETER_VALUE_PER_1G Accelerometer value equivalent to 1 g of acceleration.
MAX_OF_ACCELEROMETER_PLAY Maximum value for the play range of the accelerometer.
MAX_OF_ACCELEROMETER_SENSITIVITY Maximum value for the accelerometer sensitivity.
BUTTON_A A Button.
BUTTON_B B Button.
BUTTON_START START Button
BUTTON_RIGHT Right on the +Control Pad.
BUTTON_LEFT Left on the +Control Pad.
BUTTON_UP Up on the +Control Pad.
BUTTON_DOWN Down on the +Control Pad.
BUTTON_R R Button.
BUTTON_L L Button.
BUTTON_X X Button.
BUTTON_Y Y Button.
BUTTON_DEBUG DEBUG Button.
BUTTON_EMULATION_RIGHT Right on the emulated +Control Pad, using the Circle Pad input.
BUTTON_EMULATION_LEFT Left on the emulated +Control Pad, using the Circle Pad input.
BUTTON_EMULATION_UP Up on the emulated +Control Pad, using the Circle Pad input.
BUTTON_EMULATION_DOWN Down on the emulated +Control Pad, using the Circle Pad input.
BUTTON_MASK Input mask that includes everything other than the +Control Pad (the +Control Pad includes emulation).
PLUS_BUTTON_MASK Input mask for the +Control Pad (excluding emulation).
PLUS_BUTTON_EMULATION_MASK Input mask for +Control Pad emulation.
ALL_MASK All input.
DEBUG_PAD_BUTTON_UP Up on the +Control Pad of the debug pad.
DEBUG_PAD_BUTTON_LEFT Left on the +Control Pad of the debug pad.
DEBUG_PAD_TRIGGER_ZR The ZR Button on the debug pad.
DEBUG_PAD_BUTTON_X The X Button on the debug pad.
DEBUG_PAD_BUTTON_A The A Button on the debug pad.
DEBUG_PAD_BUTTON_Y The Y Button on the debug pad.
DEBUG_PAD_BUTTON_B The B Button on the debug pad.
DEBUG_PAD_TRIGGER_ZL The ZL Button on the debug pad.
DEBUG_PAD_TRIGGER_R The R Button on the debug pad.
DEBUG_PAD_BUTTON_PLUS The + Button on the debug pad.
DEBUG_PAD_BUTTON_HOME The HOME Button on the debug pad.
DEBUG_PAD_BUTTON_MINUS The - Button on the debug pad.
DEBUG_PAD_TRIGGER_L The L Button on the debug pad.
DEBUG_PAD_BUTTON_DOWN Down on the +Control Pad of the debug pad.
DEBUG_PAD_BUTTON_RIGHT Right on the +Control Pad of the debug pad.
MIN_OF_STICK_CLAMP_MODE_CIRCLE The minimum play that is appropriate for circular clamping of the Circle Pad.
MIN_OF_STICK_CLAMP_MODE_CROSS The minimum play that is appropriate for cross-shaped (+Control Pad-shaped) clamping of the Circle Pad.
LIMIT_OF_STICK_CLAMP_MAX Maximum value for Circle Pad clamping.

Functions

Initialize/Finalize
Initialize Initializes the HID library and enables loading of the sampling data.
Finalize Terminates the HID library.
Other
GetPad Gets a reference to an instance of the Pad class.
GetTouchPanel Gets a reference to an instance of the TouchPanel class.
GetAccelerometer Gets a reference to an instance of the Accelerometer class.
GetGyroscope Gets a reference to an instance of the Gyroscope class.
GetDebugPad Gets a reference to an instance of the DebugPad class.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL