diff options
author | Stefan Kerkmann <karlk90@pm.me> | 2022-07-07 10:00:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 10:00:40 +0200 |
commit | 8224f62806b66f0825b68fd8c00436ee57a28e9a (patch) | |
tree | 33e16a84a05073fd439e6a86f09631132a546794 /docs/ja/custom_matrix.md | |
parent | cca5d3532128a9d1aa2ab39405d935fc132c752d (diff) | |
download | qmk_firmware-8224f62806b66f0825b68fd8c00436ee57a28e9a.tar.gz qmk_firmware-8224f62806b66f0825b68fd8c00436ee57a28e9a.zip |
Make debounce() signal changes in the cooked matrix as return value (#17554)
Diffstat (limited to 'docs/ja/custom_matrix.md')
-rw-r--r-- | docs/ja/custom_matrix.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ja/custom_matrix.md b/docs/ja/custom_matrix.md index 277fc658d3..2c697bb148 100644 --- a/docs/ja/custom_matrix.md +++ b/docs/ja/custom_matrix.md @@ -87,17 +87,17 @@ void matrix_init(void) { } uint8_t matrix_scan(void) { - bool matrix_has_changed = false; + bool changed = false; // TODO: ここにマトリックススキャンルーチンを追加します // ハードウェアによるデバウンスがない場合 - 設定されているデバウンスルーチンを使用します - debounce(raw_matrix, matrix, MATRIX_ROWS, changed); + changed = debounce(raw_matrix, matrix, MATRIX_ROWS, changed); // 正しいキーボード動作のためにこれを呼び出す*必要があります* matrix_scan_quantum(); - return matrix_has_changed; + return changed; } ``` |