diff options
Diffstat (limited to 'keyboards/rgbkb/pan/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/rgbkb/pan/keymaps/default/keymap.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/keyboards/rgbkb/pan/keymaps/default/keymap.c b/keyboards/rgbkb/pan/keymaps/default/keymap.c index c041c0b57..f19d36256 100644 --- a/keyboards/rgbkb/pan/keymaps/default/keymap.c +++ b/keyboards/rgbkb/pan/keymaps/default/keymap.c | |||
@@ -1,18 +1,18 @@ | |||
1 | /* Copyright 2020 RGBKB | 1 | /* Copyright 2020 RGBKB |
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 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 16 | // Each layer gets a name for readability, which is then used in the keymap matrix below. |
17 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 17 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. |
18 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | 18 | // Layer names don't all need to be of the same length, obviously, and you can also skip them |
@@ -100,7 +100,7 @@ void oled_task_user(void) { | |||
100 | } | 100 | } |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | void encoder_update_user(uint8_t index, bool clockwise) { | 103 | bool encoder_update_user(uint8_t index, bool clockwise) { |
104 | if (index == 0) { // First encoder - right | 104 | if (index == 0) { // First encoder - right |
105 | if (clockwise) { | 105 | if (clockwise) { |
106 | tap_code(KC_VOLU); | 106 | tap_code(KC_VOLU); |
@@ -114,4 +114,5 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
114 | tap_code(KC_VOLD); | 114 | tap_code(KC_VOLD); |
115 | } | 115 | } |
116 | } | 116 | } |
117 | return true; | ||
117 | } | 118 | } |