From 5ace174cd3894c485157773c73a1cb40999cdd7b Mon Sep 17 00:00:00 2001 From: Less/Rikki <86894501+lesshonor@users.noreply.github.com> Date: Tue, 21 Mar 2023 19:23:21 -0400 Subject: fixup: correct filename (#20212) --- keyboards/reedskeebs/alish40/alish40.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keyboards/reedskeebs/alish40/alish40.c (limited to 'keyboards/reedskeebs/alish40/alish40.c') diff --git a/keyboards/reedskeebs/alish40/alish40.c b/keyboards/reedskeebs/alish40/alish40.c new file mode 100644 index 0000000000..685eae8de8 --- /dev/null +++ b/keyboards/reedskeebs/alish40/alish40.c @@ -0,0 +1,22 @@ +// Copyright 2023 QMK Contributors (@qmk) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "quantum.h" + +#ifdef ENCODER_ENABLE +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { + return false; + } + switch (index) { + case 0: + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + break; + } + return true; +} +#endif -- cgit v1.2.3