From 17c87710002c3993ce86f8dc6a96c940dedc1da8 Mon Sep 17 00:00:00 2001 From: minibois Date: Sat, 25 Dec 2021 02:27:16 +0100 Subject: [Keyboard] Add mini_ten_key_plus (#15568) Co-authored-by: Drashna Jaelre Co-authored-by: Ryan --- keyboards/mini_ten_key_plus/mini_ten_key_plus.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 keyboards/mini_ten_key_plus/mini_ten_key_plus.c (limited to 'keyboards/mini_ten_key_plus/mini_ten_key_plus.c') diff --git a/keyboards/mini_ten_key_plus/mini_ten_key_plus.c b/keyboards/mini_ten_key_plus/mini_ten_key_plus.c new file mode 100644 index 0000000000..b2b7456b53 --- /dev/null +++ b/keyboards/mini_ten_key_plus/mini_ten_key_plus.c @@ -0,0 +1,15 @@ +// Copyright 2021 minibois (@minibois) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "mini_ten_key_plus.h" + +/* Rotary Encoder's function (currently volume up/down) */ +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { return false; } + if (clockwise) { + tap_code16(KC_RIGHT_PAREN); + } else { + tap_code16(KC_LEFT_PAREN); + } + return true; +} \ No newline at end of file -- cgit v1.2.3