diff options
author | Laneware <68452738+Laneware@users.noreply.github.com> | 2023-02-08 14:42:47 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 20:42:47 -0800 |
commit | aa3b64db2bd8776f0b452bc3106c6ee663b3cce4 (patch) | |
tree | de9e6df48c34fc582b6d51fc1917b97efe014af2 /keyboards/lw75/lw75.c | |
parent | a7febfbb62182e72ecc39c5fa9e8bd9ac923f47e (diff) |
[Keyboard] LW75 Support (#19506)
Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/lw75/lw75.c')
-rw-r--r-- | keyboards/lw75/lw75.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/lw75/lw75.c b/keyboards/lw75/lw75.c new file mode 100644 index 0000000000..110a26ce1a --- /dev/null +++ b/keyboards/lw75/lw75.c @@ -0,0 +1,19 @@ +// Copyright 2023 Laneware Peripherals +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "lw75.h" + +#ifdef ENCODER_ENABLE +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) return false; + if (index == 0) { /* First encoder */ + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } + return true; +} +#endif + |