aboutsummaryrefslogtreecommitdiff
path: root/keyboards/dumbpad/v0x/templates/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dumbpad/v0x/templates/keymap.c')
-rw-r--r--keyboards/dumbpad/v0x/templates/keymap.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/dumbpad/v0x/templates/keymap.c b/keyboards/dumbpad/v0x/templates/keymap.c
new file mode 100644
index 000000000..6f862b822
--- /dev/null
+++ b/keyboards/dumbpad/v0x/templates/keymap.c
@@ -0,0 +1,26 @@
1#include QMK_KEYBOARD_H
2const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__};
3
4
5bool encoder_update_user(uint8_t index, bool clockwise) {
6 if (index == 0) {
7 switch (get_highest_layer(layer_state)) {
8 case 0:
9 if (clockwise) {
10 tap_code(KC_MS_R);
11 } else {
12 tap_code(KC_MS_L);
13 }
14 break;
15
16 default:
17 if (clockwise) {
18 tap_code(KC_EQL);
19 } else {
20 tap_code(KC_MINS);
21 }
22 break;
23 }
24 }
25 return true;
26}