aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio/sinc
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/sinc')
-rw-r--r--keyboards/keebio/sinc/keymaps/default/keymap.c2
-rw-r--r--keyboards/keebio/sinc/keymaps/via/keymap.c17
-rw-r--r--keyboards/keebio/sinc/rev1/rev1.c18
-rw-r--r--keyboards/keebio/sinc/rev2/rev2.c18
4 files changed, 37 insertions, 18 deletions
diff --git a/keyboards/keebio/sinc/keymaps/default/keymap.c b/keyboards/keebio/sinc/keymaps/default/keymap.c
index 650314295..060bf5dc6 100644
--- a/keyboards/keebio/sinc/keymaps/default/keymap.c
+++ b/keyboards/keebio/sinc/keymaps/default/keymap.c
@@ -33,5 +33,5 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
33 tap_code(KC_VOLD); 33 tap_code(KC_VOLD);
34 } 34 }
35 } 35 }
36 return true; 36 return false;
37} 37}
diff --git a/keyboards/keebio/sinc/keymaps/via/keymap.c b/keyboards/keebio/sinc/keymaps/via/keymap.c
index 20cfdd79b..225e9c07d 100644
--- a/keyboards/keebio/sinc/keymaps/via/keymap.c
+++ b/keyboards/keebio/sinc/keymaps/via/keymap.c
@@ -37,20 +37,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
38 ) 38 )
39}; 39};
40
41bool encoder_update_user(uint8_t index, bool clockwise) {
42 if (index == 0) {
43 if (clockwise) {
44 tap_code(KC_PGDN);
45 } else {
46 tap_code(KC_PGUP);
47 }
48 } else if (index == 1) {
49 if (clockwise) {
50 tap_code(KC_VOLU);
51 } else {
52 tap_code(KC_VOLD);
53 }
54 }
55 return true;
56}
diff --git a/keyboards/keebio/sinc/rev1/rev1.c b/keyboards/keebio/sinc/rev1/rev1.c
index 562a24534..906b9b7d5 100644
--- a/keyboards/keebio/sinc/rev1/rev1.c
+++ b/keyboards/keebio/sinc/rev1/rev1.c
@@ -22,3 +22,21 @@ void eeconfig_init_kb(void) {
22 eeconfig_update_kb(0); 22 eeconfig_update_kb(0);
23 eeconfig_init_user(); 23 eeconfig_init_user();
24} 24}
25
26bool encoder_update_kb(uint8_t index, bool clockwise) {
27 if (!encoder_update_user(index, clockwise)) { return false; }
28 if (index == 0) {
29 if (clockwise) {
30 tap_code(KC_PGDN);
31 } else {
32 tap_code(KC_PGUP);
33 }
34 } else if (index == 1) {
35 if (clockwise) {
36 tap_code(KC_VOLU);
37 } else {
38 tap_code(KC_VOLD);
39 }
40 }
41 return false;
42}
diff --git a/keyboards/keebio/sinc/rev2/rev2.c b/keyboards/keebio/sinc/rev2/rev2.c
index aea877d83..47bb1e9e6 100644
--- a/keyboards/keebio/sinc/rev2/rev2.c
+++ b/keyboards/keebio/sinc/rev2/rev2.c
@@ -38,3 +38,21 @@ void eeconfig_init_kb(void) {
38 eeconfig_update_kb(0); 38 eeconfig_update_kb(0);
39 eeconfig_init_user(); 39 eeconfig_init_user();
40} 40}
41
42bool encoder_update_kb(uint8_t index, bool clockwise) {
43 if (!encoder_update_user(index, clockwise)) { return false; }
44 if (index == 0) {
45 if (clockwise) {
46 tap_code(KC_PGDN);
47 } else {
48 tap_code(KC_PGUP);
49 }
50 } else if (index == 1) {
51 if (clockwise) {
52 tap_code(KC_VOLU);
53 } else {
54 tap_code(KC_VOLD);
55 }
56 }
57 return false;
58}