M5Unit-KEYBOARD 0.1.0 git rev:b58d024
Loading...
Searching...
No Matches
m5::unit::tab5_keyboard::HidMapping Struct Reference

HID Usage Code + base modifier byte for a Tab5 Keyboard matrix position. More...

#include <unit_Tab5Keyboard.hpp>

Public Attributes

uint8_t keycode
 HID Usage Code (USB HID Keyboard Page 0x07); 0 = unmapped.
 
uint8_t modifier
 Base HID modifier byte (e.g. 0x02 if firmware forces shift)
 

Detailed Description

HID Usage Code + base modifier byte for a Tab5 Keyboard matrix position.

Note
Returned by keyMatrixToHidBase() / keyMatrixToHidSym() lookup tables. The modifier field captures the firmware-forced shift state (e.g. 0x02 for the + key which prints as Shift-= in HID). Callers may OR in extra modifier bits (Aa shift, Ctrl, Alt) before passing to hidUsageToChar().