diff options
Diffstat (limited to 'keyboards/ckeys')
-rwxr-xr-x | keyboards/ckeys/thedora/keymaps/default/keymap.c | 3 | ||||
-rwxr-xr-x | keyboards/ckeys/thedora/readme.md | 3 | ||||
-rw-r--r-- | keyboards/ckeys/washington/keymaps/default/keymap.c | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/keyboards/ckeys/thedora/keymaps/default/keymap.c b/keyboards/ckeys/thedora/keymaps/default/keymap.c index c407fbe26..783475eb0 100755 --- a/keyboards/ckeys/thedora/keymaps/default/keymap.c +++ b/keyboards/ckeys/thedora/keymaps/default/keymap.c | |||
@@ -144,7 +144,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
144 | return true; | 144 | return true; |
145 | }; | 145 | }; |
146 | 146 | ||
147 | void encoder_update_user(uint8_t index, bool clockwise) { | 147 | bool encoder_update_user(uint8_t index, bool clockwise) { |
148 | if (index == 0) { /* First encoder */ | 148 | if (index == 0) { /* First encoder */ |
149 | if (clockwise) { | 149 | if (clockwise) { |
150 | tap_code(KC_PGDN); | 150 | tap_code(KC_PGDN); |
@@ -152,4 +152,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
152 | tap_code(KC_PGUP); | 152 | tap_code(KC_PGUP); |
153 | } | 153 | } |
154 | } | 154 | } |
155 | return true; | ||
155 | } | 156 | } |
diff --git a/keyboards/ckeys/thedora/readme.md b/keyboards/ckeys/thedora/readme.md index 273811d0f..991b5df02 100755 --- a/keyboards/ckeys/thedora/readme.md +++ b/keyboards/ckeys/thedora/readme.md | |||
@@ -51,7 +51,7 @@ You can find the default layout in `thedora/keymaps/default/keymap.c` | |||
51 | This is the bit of code at the end of `keymap.c` that needs to changed if you want to change the behavior of the rotary encoder. | 51 | This is the bit of code at the end of `keymap.c` that needs to changed if you want to change the behavior of the rotary encoder. |
52 | 52 | ||
53 | ``` | 53 | ``` |
54 | void encoder_update_user(uint8_t index, bool clockwise) { | 54 | bool encoder_update_user(uint8_t index, bool clockwise) { |
55 | if (index == 0) { /* First encoder */ | 55 | if (index == 0) { /* First encoder */ |
56 | if (clockwise) { | 56 | if (clockwise) { |
57 | tap_code(KC_PGDN); // What the rotary encoder repeatedly does when turned right. | 57 | tap_code(KC_PGDN); // What the rotary encoder repeatedly does when turned right. |
@@ -59,6 +59,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
59 | tap_code(KC_PGUP); // What it does when turned to the left. | 59 | tap_code(KC_PGUP); // What it does when turned to the left. |
60 | } | 60 | } |
61 | } | 61 | } |
62 | return true; | ||
62 | } | 63 | } |
63 | ``` | 64 | ``` |
64 | 65 | ||
diff --git a/keyboards/ckeys/washington/keymaps/default/keymap.c b/keyboards/ckeys/washington/keymaps/default/keymap.c index bfe296383..7adac3c43 100644 --- a/keyboards/ckeys/washington/keymaps/default/keymap.c +++ b/keyboards/ckeys/washington/keymaps/default/keymap.c | |||
@@ -39,7 +39,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
39 | ) | 39 | ) |
40 | }; | 40 | }; |
41 | 41 | ||
42 | void encoder_update_user(uint8_t index, bool clockwise) { | 42 | bool encoder_update_user(uint8_t index, bool clockwise) { |
43 | switch (biton32(layer_state)) { | 43 | switch (biton32(layer_state)) { |
44 | case _BASE: | 44 | case _BASE: |
45 | if (clockwise) { | 45 | if (clockwise) { |
@@ -55,6 +55,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
55 | tap_code(KC_MPRV); | 55 | tap_code(KC_MPRV); |
56 | } | 56 | } |
57 | } | 57 | } |
58 | return true; | ||
58 | } | 59 | } |
59 | 60 | ||
60 | #ifdef OLED_DRIVER_ENABLE | 61 | #ifdef OLED_DRIVER_ENABLE |
@@ -79,4 +80,4 @@ void oled_task_user(void) { | |||
79 | oled_write_P(IS_LED_ON(usb_led, USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); | 80 | oled_write_P(IS_LED_ON(usb_led, USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false); |
80 | oled_write_P(IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); | 81 | oled_write_P(IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false); |
81 | } | 82 | } |
82 | #endif \ No newline at end of file | 83 | #endif |