23 uint32_t touch_diameter_x;
24 uint32_t touch_diameter_y;
88 BUTTON_LSTICK =
BIT(4),
89 BUTTON_RSTICK =
BIT(5),
96 BUTTON_PLUS =
BIT(10),
97 BUTTON_MINUS =
BIT(11),
99 BUTTON_LEFT =
BIT(12),
101 BUTTON_RIGHT =
BIT(14),
102 BUTTON_DOWN =
BIT(15),
104 BUTTON_LSTICK_LEFT =
BIT(16),
105 BUTTON_LSTICK_UP =
BIT(17),
106 BUTTON_LSTICK_DOWN =
BIT(18),
107 BUTTON_LSTICK_RIGHT =
BIT(19),
109 BUTTON_RSTICK_LEFT =
BIT(20),
110 BUTTON_RSTICK_UP =
BIT(21),
111 BUTTON_RSTICK_DOWN =
BIT(22),
112 BUTTON_RSTICK_RIGHT =
BIT(23),
124 uint64_t button_state;
125 uint32_t left_stick_x;
126 uint32_t left_stick_y;
127 uint32_t right_stick_x;
128 uint32_t right_stick_y;
129 uint64_t controller_state;
137 uint64_t num_entries;
156 uint32_t is_joycon_half;
171 uint8_t pad1[0x2a78];
187 uint8_t unknown1[0x400];
188 uint8_t unknown2[0x400];
189 uint8_t unknown3[0x400];
190 uint8_t unknown4[0x400];
191 uint8_t unknown5[0x200];
192 uint8_t unknown6[0x200];
193 uint8_t unknown7[0x200];
195 uint8_t controller_serials[0x4000];
197 uint8_t unknown8[0x4600];
uint32_t touch_y
Definition: hid.h:22
hid_controller_button_mask_t
Bitmasks for hid_controller_state_entry_t.button_state.
Definition: hid.h:82
bool hid_controller_buttons_down(hid_controller_t *c, hid_controller_button_mask_t m)
Detect if button(s) are pressed.
hid_shared_memory_t * hid_get_shared_memory()
Get HID shared memory.
void hid_finalize()
Finalize HID.
uint32_t result_t
Function result.
Definition: types.h:51
uint32_t touch_x
Definition: hid.h:21
result_t hid_init()
Initialize input.
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:57