CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_api_keypad.cpp File Reference

Direct keypad polling for plugins (thin wrapper over IKeypad). More...

Go to the source code of this file.

Functions

bool host_key_pressed (uint8_t key)
 True while key is currently held down.
int host_key_consume_next (uint8_t *out_key)
 Pop the next queued key press, if any.

Detailed Description

Direct keypad polling for plugins (thin wrapper over IKeypad).

Maps the plugin ABI key codes (KEY_0..KEY_9 = 0..9, KEY_Y = 10, KEY_N = 11) onto the HAL's cdc::hal::Key enum. All state lives in the keypad HAL.

Definition in file host_api_keypad.cpp.