diff options
author | takashicompany <t@kashi.company> | 2023-07-04 05:55:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 13:55:12 -0700 |
commit | e423d5e3d4059b3c16358fc5b6b2fe673f204f54 (patch) | |
tree | a6b32e86cb4941b99545c7efeb4ea2a462924cd4 /keyboards/takashicompany/baumkuchen/baumkuchen.c | |
parent | 989f387d1838fc720a6f12f2ffde3acc0e4b1920 (diff) |
[Keyboard] Add Baumkuchen (#20766)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/takashicompany/baumkuchen/baumkuchen.c')
-rw-r--r-- | keyboards/takashicompany/baumkuchen/baumkuchen.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/takashicompany/baumkuchen/baumkuchen.c b/keyboards/takashicompany/baumkuchen/baumkuchen.c new file mode 100644 index 0000000000..7d4f26b73e --- /dev/null +++ b/keyboards/takashicompany/baumkuchen/baumkuchen.c @@ -0,0 +1,19 @@ +// Copyright 2023 takashicompany (@takashicompany) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "quantum.h" + +bool encoder_update_kb(uint8_t index, bool clockwise) { + + if (!encoder_update_user(index, clockwise)) { + return false; + } + + if (clockwise) { + tap_code(KC_WH_D); + } else { + tap_code(KC_WH_U); + } + + return true; +}
\ No newline at end of file |