![]() |
nRF Connect SDK API 3.3.99
|
Utility used to track state of active keys. More...
Data Structures | |
| struct | active_key |
| Structure used to track an active key. More... | |
| struct | keys_state |
| Keys state structure. More... | |
Macros | |
| #define | KEYS_MAX_CNT CONFIG_DESKTOP_KEYS_STATE_KEY_CNT_MAX |
Functions | |
| void | keys_state_init (struct keys_state *ks, uint8_t key_cnt_max) |
| Initialize a keys state object. | |
| int | keys_state_key_update (struct keys_state *ks, uint16_t key_id, bool pressed, bool *ks_changed) |
| Notify keys state about a key press/release. | |
| void | keys_state_clear (struct keys_state *ks) |
| Clear keys state. | |
| size_t | keys_state_keys_get (const struct keys_state *ks, uint16_t *res, size_t res_size) |
| Get keys state. | |
Utility used to track state of active keys.