mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-12 23:14:47 +00:00
17 lines
553 B
C
17 lines
553 B
C
#pragma once
|
|
|
|
/**
|
|
* @brief Debounce raw matrix events according to the choosen debounce algorithm.
|
|
*
|
|
* @param raw The current key state
|
|
* @param cooked The debounced key state
|
|
* @param num_rows Number of rows to debounce
|
|
* @param changed True if raw has changed since the last call
|
|
* @return true Cooked has new keychanges after debouncing
|
|
* @return false Cooked is the same as before
|
|
*/
|
|
bool debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed);
|
|
|
|
void debounce_init(uint8_t num_rows);
|
|
|
|
void debounce_free(void);
|