summaryrefslogtreecommitdiff
path: root/keyboards/stello65/beta/beta.c
blob: 015f53b9200a2ccd9f097221b37c34f999010a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2021 @wekey (@@wekey)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "quantum.h"
#include "encoder_actions.h"

void matrix_scan_kb(void) {
    encoder_action_unregister();
    matrix_scan_user();
}

bool encoder_update_kb(uint8_t index, bool clockwise) {
    if (!encoder_update_user(index, clockwise)) { return false; }
    encoder_action_register(index, clockwise);
    return true;
};