baumkuchen.c (378B)
1 // Copyright 2023 takashicompany (@takashicompany) 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 4 #include "quantum.h" 5 6 bool encoder_update_kb(uint8_t index, bool clockwise) { 7 8 if (!encoder_update_user(index, clockwise)) { 9 return false; 10 } 11 12 if (clockwise) { 13 tap_code(MS_WHLD); 14 } else { 15 tap_code(MS_WHLU); 16 } 17 18 return true; 19 }