MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / add_pressed_key

Method add_pressed_key

Drivers/TCA8418/Source/Tca8418.cpp:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165void Tca8418::add_pressed_key(uint8_t row, uint8_t col) {
166 if (pressed_key_count >= KEY_EVENT_LIST_SIZE)
167 return;
168
169 pressed_list[pressed_key_count].row = row;
170 pressed_list[pressed_key_count].col = col;
171 pressed_list[pressed_key_count].hold_time = 0;
172 pressed_key_count++;
173}
174
175void Tca8418::add_released_key(uint8_t row, uint8_t col) {
176 if (released_key_count >= KEY_EVENT_LIST_SIZE)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected