~ruther/qmk_firmware

ref: 695c4c603005469704cd678a1d3ffb093d7e1231 qmk_firmware/keyboards/rotr/rotr.c -rw-r--r-- 250 bytes
695c4c60 — adophoxia [Keyboard] Add missing `dip_switch_update_kb` for Keychron V2 (#19674) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#include "rotr.h"

bool encoder_update_kb(uint8_t index, bool clockwise) {
    if (!encoder_update_user(index, clockwise)) return false;
    if (clockwise) {
        tap_code(KC_VOLU);
    } else {
        tap_code(KC_VOLD);
    }
    return true;
}