~ruther/qmk_firmware

ref: fa08cb2478e8c13a9f1c785956c95cb49bbebba3 qmk_firmware/keyboards/rotr/rotr.c -rw-r--r-- 250 bytes
fa08cb24 — Drashna Jaelre [Keymap] Drashna keymap updates for 0.18.0 (#18184) 3 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;
}