forked from Mirror/GodMode9
- reset LEDs on boot - add code to set the notification LED - add a PXI command to verify the NVRAM is actually online - notify the ARM9 about the shell state through the HID thing
36 lines
1.2 KiB
C
Executable File
36 lines
1.2 KiB
C
Executable File
#pragma once
|
|
|
|
#define BUTTON_A ((u32)1 << 0)
|
|
#define BUTTON_B ((u32)1 << 1)
|
|
#define BUTTON_SELECT ((u32)1 << 2)
|
|
#define BUTTON_START ((u32)1 << 3)
|
|
#define BUTTON_RIGHT ((u32)1 << 4)
|
|
#define BUTTON_LEFT ((u32)1 << 5)
|
|
#define BUTTON_UP ((u32)1 << 6)
|
|
#define BUTTON_DOWN ((u32)1 << 7)
|
|
#define BUTTON_R1 ((u32)1 << 8)
|
|
#define BUTTON_L1 ((u32)1 << 9)
|
|
#define BUTTON_X ((u32)1 << 10)
|
|
#define BUTTON_Y ((u32)1 << 11)
|
|
#define BUTTON_ANY 0x00000FFF
|
|
#define BUTTON_ARROW (BUTTON_RIGHT|BUTTON_LEFT|BUTTON_UP|BUTTON_DOWN)
|
|
|
|
// strings for button conversion
|
|
#define BUTTON_STRINGS "A", "B", "SELECT", "START", "RIGHT", "LEFT", "UP", "DOWN", "R", "L", "X", "Y"
|
|
|
|
// special buttons / touchscreen / cart / sd
|
|
#define BUTTON_POWER ((u32)1 << 12)
|
|
#define BUTTON_HOME ((u32)1 << 13)
|
|
#define BUTTON_WIFI ((u32)1 << 14)
|
|
#define BUTTON_TOUCH ((u32)1 << 15)
|
|
|
|
#define SHELL_OPEN ((u32)1 << 16)
|
|
#define SHELL_CLOSED ((u32)1 << 17)
|
|
|
|
#define CART_INSERT ((u32)1 << 18)
|
|
#define CART_EJECT ((u32)1 << 19)
|
|
#define SD_INSERT ((u32)1 << 20)
|
|
#define SD_EJECT ((u32)1 << 21)
|
|
|
|
#define TIMEOUT_HID ((u32)1 << 31)
|