summaryrefslogtreecommitdiff
path: root/keyboards/gorthage_truck/gorthage_truck.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/gorthage_truck/gorthage_truck.c')
-rw-r--r--keyboards/gorthage_truck/gorthage_truck.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/gorthage_truck/gorthage_truck.c b/keyboards/gorthage_truck/gorthage_truck.c
index c6f75d7270..2745666916 100644
--- a/keyboards/gorthage_truck/gorthage_truck.c
+++ b/keyboards/gorthage_truck/gorthage_truck.c
@@ -15,3 +15,15 @@
*/
#include "gorthage_truck.h"
+
+bool encoder_update_kb(uint8_t index, bool clockwise) {
+ if (!encoder_update_user(index, clockwise)) { return false; }
+ if (index == 0) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ }
+ return true;
+}