diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2021-07-13 16:50:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 16:50:25 +0900 |
commit | ac2e6e01f155811d0e206298f0d7cadcc9234603 (patch) | |
tree | ee70abbdb373ef7e0802173a34bb91fc6d5fefbf /users/_example | |
parent | a62b10176e6781f3b2e176a681b2090998c6d157 (diff) |
Change the prototype of matrix_output_unselect_delay() (#13045)
The prototype of matrix_output_unselect_delay() has been changed as follows.
```c
void matrix_output_unselect_delay(uint8_t line, bool key_pressed);
```
Currently, no keyboard seems to be redefining `matrix_output_unselect_delay()`, so there is no change in the system behavior.
With this change, the keyboard level code can get some optimization hints, for example, the following.
```c
void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
/* If none of the keys are pressed,
* there is no need to wait for time for the next line. */
if (key_pressed) {
#ifdef MATRIX_IO_DELAY
# if MATRIX_IO_DELAY > 0
wait_us(MATRIX_IO_DELAY);
# endif
#else
wait_us(30);
#endif
}
}
```
Diffstat (limited to 'users/_example')
0 files changed, 0 insertions, 0 deletions