beta.c 406 B

12345678910111213141516
  1. // Copyright 2021 @wekey (@@wekey)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "beta.h"
  4. #include "encoder_actions.h"
  5. void matrix_scan_kb(void) {
  6. encoder_action_unregister();
  7. matrix_scan_user();
  8. }
  9. bool encoder_update_kb(uint8_t index, bool clockwise) {
  10. if (!encoder_update_user(index, clockwise)) { return false; }
  11. encoder_action_register(index, clockwise);
  12. return true;
  13. };