aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/rotr/rotr.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/rotr/rotr.c')
-rw-r--r--keyboards/rotr/rotr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/rotr/rotr.c b/keyboards/rotr/rotr.c
new file mode 100644
index 000000000..2097bd9c1
--- /dev/null
+++ b/keyboards/rotr/rotr.c
@@ -0,0 +1,9 @@
+#include "rotr.h"
+
+void encoder_update_kb(uint8_t index, bool clockwise) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+}