diff options
Diffstat (limited to 'keyboards/handwired/pill60/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/handwired/pill60/keymaps/default/keymap.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/keyboards/handwired/pill60/keymaps/default/keymap.c b/keyboards/handwired/pill60/keymaps/default/keymap.c index d9f0fa727..55996c018 100644 --- a/keyboards/handwired/pill60/keymaps/default/keymap.c +++ b/keyboards/handwired/pill60/keymaps/default/keymap.c | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2020 Imam Rafii | 1 | /* Copyright 2020 Imam Rafii |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
7 | * | 7 | * |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
17 | 17 | ||
18 | enum layers { | 18 | enum layers { |
@@ -74,7 +74,7 @@ void oled_task_user(void) { | |||
74 | 74 | ||
75 | #ifdef ENCODER_ENABLE | 75 | #ifdef ENCODER_ENABLE |
76 | 76 | ||
77 | void encoder_update_user(uint8_t index, bool clockwise) { | 77 | bool encoder_update_user(uint8_t index, bool clockwise) { |
78 | if (index == 0) { /* First encoder */ | 78 | if (index == 0) { /* First encoder */ |
79 | if (clockwise) { | 79 | if (clockwise) { |
80 | tap_code(KC_A); | 80 | tap_code(KC_A); |
@@ -82,6 +82,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
82 | tap_code(KC_B); | 82 | tap_code(KC_B); |
83 | } | 83 | } |
84 | } | 84 | } |
85 | return true; | ||
85 | } | 86 | } |
86 | 87 | ||
87 | #endif | 88 | #endif |