diff options
Diffstat (limited to 'keyboards/wekey/stelo65/stelo65.c')
| -rw-r--r-- | keyboards/wekey/stelo65/stelo65.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/wekey/stelo65/stelo65.c b/keyboards/wekey/stelo65/stelo65.c new file mode 100644 index 000000000..922f399a6 --- /dev/null +++ b/keyboards/wekey/stelo65/stelo65.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2021 @wekey (@@wekey) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "stelo65.h" | ||
| 5 | #include "encoder_actions.h" | ||
| 6 | |||
| 7 | void matrix_scan_kb(void) { | ||
| 8 | encoder_action_unregister(); | ||
| 9 | matrix_scan_user(); | ||
| 10 | } | ||
| 11 | |||
| 12 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
| 13 | if (!encoder_update_user(index, clockwise)) { return false; } | ||
| 14 | encoder_action_register(index, clockwise); | ||
| 15 | return true; | ||
| 16 | }; | ||
