Browse Source

[Keyboard] Stelo encoder action

pull/15102/head
Uy Bui 2 years ago
parent
commit
3f5561872a
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      keyboards/wekey/stelo/stelo.c

+ 12
- 0
keyboards/wekey/stelo/stelo.c View File

@ -2,3 +2,15 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "stelo.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;
};

Loading…
Cancel
Save