22 typedef uint32_t ctr_hid_button_type;
25 #define CTR_HID_REG ((volatile ctr_hid_button_type*)0x10146000) 28 #define CTR_HID_NON 0x000u 29 #define CTR_HID_A 0x001u 30 #define CTR_HID_B 0x002u 31 #define CTR_HID_SELECT 0x004u 32 #define CTR_HID_START 0x008u 33 #define CTR_HID_RIGHT 0x010u 34 #define CTR_HID_LEFT 0x020u 35 #define CTR_HID_UP 0x040u 36 #define CTR_HID_DOWN 0x080u 37 #define CTR_HID_RT 0x100u 38 #define CTR_HID_LT 0x200u 39 #define CTR_HID_X 0x400u 40 #define CTR_HID_Y 0x800u ctr_hid_button_type ctr_hid_get_buttons(void)
Returns all of the buttons pressed at the instant this is called.
bool ctr_hid_button_status(ctr_hid_button_type buttons)
Returns whether the given button combination is pressed or not.