![]() |
Wixel SDK
|
#include <usb_hid.h>
Data Fields | |
uint8 | modifiers |
uint8 | _reserved |
uint8 | keyCodes [6] |
This struct contains the input data sent in HID reports from the keyboard interface to the host.
uint8 keyCodes[6] |
Keyboard key code data: Each byte contains the key code of one key that is currently pressed (0 = no key). Up to 6 pressed keys at a time can be reported in this way. See usb_hid_constants.h for possible key code values. The keyboard's HID Report Descriptor is defined as keyboardReportDescriptor
in usb_hid.c.
uint8 modifiers |
Keyboard modifier key data: Each bit contains the state of one modifier key (1 = pressed, 0 = not pressed), with the lowest bit representing Left Control (usage ID 0xE0) and the highest bit representing Right GUI (usage ID 0xE7) in the Keyboard/Keypad usage page. See usb_hid_constants.h for the meaning of each bit. The keyboard's HID Report Descriptor is defined as keyboardReportDescriptor
in usb_hid.c.