mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-12-06 16:31:54 +08:00
19 lines
512 B
C
19 lines
512 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "matrix.h"
|
|
|
|
/**
|
|
* @brief Debounce raw matrix events according to the choosen debounce algorithm.
|
|
*
|
|
* @param raw The current key state
|
|
* @param cooked The debounced key state
|
|
* @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[], bool changed);
|
|
|
|
void debounce_init(void);
|