summaryrefslogtreecommitdiffstats
path: root/keyboards/dumbpad/v0x_dualencoder/templates/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dumbpad/v0x_dualencoder/templates/keymap.c')
-rw-r--r--keyboards/dumbpad/v0x_dualencoder/templates/keymap.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/keyboards/dumbpad/v0x_dualencoder/templates/keymap.c b/keyboards/dumbpad/v0x_dualencoder/templates/keymap.c
deleted file mode 100644
index c602269ed3..0000000000
--- a/keyboards/dumbpad/v0x_dualencoder/templates/keymap.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include QMK_KEYBOARD_H
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {__KEYMAP_GOES_HERE__};
-
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) {
- switch (get_highest_layer(layer_state)) {
- case 0:
- if (clockwise) {
- tap_code(KC_MS_R);
- } else {
- tap_code(KC_MS_L);
- }
- break;
-
- default:
- if (clockwise) {
- tap_code(KC_EQL);
- } else {
- tap_code(KC_MINS);
- }
- break;
- }
- } else if (index == 1) {
- switch (get_highest_layer(layer_state)) {
- case 0:
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- break;
-
- default:
- if (clockwise) {
- tap_code(KC_RIGHT);
- } else {
- tap_code(KC_LEFT);
- }
- break;
- }
- }
- return true;
-}