nn::hid::CTR::ExtraPadStatus

nn::hid::CTR::ExtraPadStatus Structure

Syntax

struct ExtraPadStatus
{
AnalogStickStatus stick;
AnalogStickStatus extraStick;
bit32 hold;
bit32 trigger;
bit32 release;
u8 batteryLevel;
bool isConnected;
};

Description

Represents status and information about input from the CTR system and Circle Pad Pro.

Member Variables

stick AnalogStickStatus Input values from the Circle Pad on the CTR system. See AnalogStickStatus.
extraStick AnalogStickStatus Input values from the Right Circle Pad on the Circle Pad Pro. See AnalogStickStatus.
hold bit32 Bit array corresponding to buttons. When a button is pressed, its corresponding bit (BUTTON_*) is set.
trigger bit32 Bit array corresponding to buttons. At the moment a button is pressed, its corresponding bit (BUTTON_*) is set and then cleared.
release bit32 Bit array corresponding to buttons. At the moment a button is released, its corresponding bit (BUTTON_*) is set and then cleared.
batteryLevel u8 Indicates the remaining battery life of the Circle Pad Pro. The value is 1 when there is sufficient remaining battery life. When the battery is almost depleted, the value becomes 0.
isConnected bool Indicates the connection state of the Circle Pad Pro. Returns a value of true while a connection is established; otherwise returns false.

Revision History

2011/10/06
Initial version.

CONFIDENTIAL