aboutsummaryrefslogtreecommitdiff
path: root/keyboards/45_ats/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/45_ats/keymaps/default/keymap.c')
-rw-r--r--keyboards/45_ats/keymaps/default/keymap.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/keyboards/45_ats/keymaps/default/keymap.c b/keyboards/45_ats/keymaps/default/keymap.c
index 28941b173..de69c4b05 100644
--- a/keyboards/45_ats/keymaps/default/keymap.c
+++ b/keyboards/45_ats/keymaps/default/keymap.c
@@ -1,20 +1,20 @@
1 /* 1 /*
2 Copyright 2020 Alec Penland 2 Copyright 2020 Alec Penland
3 Copyright 2020 Garret Gartner 3 Copyright 2020 Garret Gartner
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or 7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19#include QMK_KEYBOARD_H 19#include QMK_KEYBOARD_H
20 20
@@ -31,7 +31,7 @@ enum ats_layers{
31#define RS_SLS RSFT_T(KC_SLSH) 31#define RS_SLS RSFT_T(KC_SLSH)
32 32
33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
34 /* Default QWERTY layer 34 /* Default QWERTY layer
35 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐ 35 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐
36 * │Esc│ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │Del│BkS│ │PgU│ 36 * │Esc│ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │Del│BkS│ │PgU│
37 * ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤ ├───┤ 37 * ├───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤ ├───┤
@@ -96,7 +96,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
96 return state; 96 return state;
97} 97}
98 98
99void encoder_update_user(uint8_t index, bool clockwise) { 99bool encoder_update_user(uint8_t index, bool clockwise) {
100 if (index == 0) { 100 if (index == 0) {
101 if (clockwise) { 101 if (clockwise) {
102 tap_code(KC_VOLU); 102 tap_code(KC_VOLU);
@@ -104,4 +104,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
104 tap_code(KC_VOLD); 104 tap_code(KC_VOLD);
105 } 105 }
106 } 106 }
107 return true;
107} 108}