2022-01-09 03:53:45 +00:00
|
|
|
// Copyright 2021 @wekey (@@wekey)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-04-15 11:08:15 +00:00
|
|
|
#include "quantum.h"
|
2022-01-09 03:53:45 +00:00
|
|
|
#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;
|
|
|
|
};
|