![]() |
nRF Connect SDK API 3.3.99
|
| void keys_state_init | ( | struct keys_state * | ks, |
| uint8_t | key_cnt_max ) |
#include <applications/nrf_desktop/src/util/keys_state.h>
Initialize a keys state object.
A keys state object must be initialized to track active keys.
The function asserts if maximum number of active keys exceeds the value allowed by Kconfig configuration.
| [in] | ks | A keys state object. |
| [in] | key_cnt_max | Maximum number of active keys. |