diff options
Diffstat (limited to 'users/kuchosauronad0/encoder.c')
| -rw-r--r-- | users/kuchosauronad0/encoder.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/kuchosauronad0/encoder.c b/users/kuchosauronad0/encoder.c new file mode 100644 index 000000000..1b9b2cb12 --- /dev/null +++ b/users/kuchosauronad0/encoder.c | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #include "encoder.h" | ||
| 2 | |||
| 3 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 4 | if (clockwise) { | ||
| 5 | tap_code(KC_1); | ||
| 6 | } else { | ||
| 7 | tap_code(KC_0); | ||
| 8 | } | ||
| 9 | } | ||
| 10 | |||
