libnds
Macros | Typedefs | Enumerations
input.h File Reference

common values for keypad input. More...

Macros

#define REG_KEYCNT   (*(vuint16*)0x04000132)
 Key input control register.
 
#define REG_KEYINPUT   (*(vuint16*)0x04000130)
 Key input register. On the ARM9, the hinge "button", the touch status, and the X and Y buttons cannot be accessed directly.
 

Typedefs

typedef enum KEYPAD_BITS KEYPAD_BITS
 enum values for the keypad buttons.
 

Enumerations

Detailed Description

common values for keypad input.

common values that can be used on both the arm9 and arm7.

Enumeration Type Documentation

enum values for the keypad buttons.

Enumerator
KEY_A 

Keypad A button.

KEY_B 

Keypad B button.

KEY_SELECT 

Keypad SELECT button.

KEY_START 

Keypad START button.

KEY_RIGHT 

Keypad RIGHT button.

KEY_LEFT 

Keypad LEFT button.

KEY_UP 

Keypad UP button.

KEY_DOWN 

Keypad DOWN button.

KEY_R 

Right shoulder button.

KEY_L 

Left shoulder button.

KEY_X 

Keypad X button.

KEY_Y 

Keypad Y button.

KEY_TOUCH 

Touchscreen pendown.

KEY_LID 

Lid state.