GodMode9/common/hid_map.h
Wolfvak 30f0b004c2 fixed screen init, hopefully the last commmit
- properly performs gpu/backlight reset

- nukes vram so the initrd had to be moved to arm9 memory, and have its size (at least temporarily) limited to 256k
2020-07-18 20:25:34 -03:00

36 lines
1.1 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)