summaryrefslogtreecommitdiff
path: root/keyboards/ztboards/after/keymaps
diff options
context:
space:
mode:
authorPhilip (Han) Suh <36554396+phlopsuh@users.noreply.github.com>2020-11-14 22:17:16 -0800
committerGitHub <noreply@github.com>2020-11-14 22:17:16 -0800
commit91b44016f9eb18d9d597708b2ff9d66b4da530cb (patch)
treec607de8bc913418d80a349648db4fa2663ba043a /keyboards/ztboards/after/keymaps
parent45e16fd54319423221277d6199be7757bdaf7a9a (diff)
ZTBoards Updated keymap and updated info.json (#10926)
* Updated information on info.json and hopefully de-cluttered branch * Updated default encoder settings * Updated info.json for after to be in the proper order * Fixed maintainer name
Diffstat (limited to 'keyboards/ztboards/after/keymaps')
-rw-r--r--keyboards/ztboards/after/keymaps/default/keymap.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/keyboards/ztboards/after/keymaps/default/keymap.c b/keyboards/ztboards/after/keymaps/default/keymap.c
index e014b3a985..7dfb9e1261 100644
--- a/keyboards/ztboards/after/keymaps/default/keymap.c
+++ b/keyboards/ztboards/after/keymaps/default/keymap.c
@@ -21,33 +21,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
void encoder_update_user(uint8_t index, bool clockwise) {
- /* Custom encoder control - handles CW/CCW turning of encoder
- * Default behavior:
- * main layer:
- * CW: move mouse right
- * CCW: move mouse left
- * other layers:
- * CW: = (equals/plus - increase slider in Adobe products)
- * CCW: - (minus/underscore - decrease slider in adobe products)
- * Thank you to imchipwood/dumbpad for defining this.
- */
if (index == 0) {
switch (get_highest_layer(layer_state)) {
case 1:
// main layer - move mouse right (CW) and left (CCW)
if (clockwise) {
- tap_code(KC_MS_R);
+ tap_code(KC_BRIGHTNESS_UP);
} else {
- tap_code(KC_MS_L);
+ tap_code(KC_BRIGHTNESS_DOWN);
}
break;
default:
// other layers - =/+ (quals/plus) (CW) and -/_ (minus/underscore) (CCW)
if (clockwise) {
- tap_code(KC_EQL);
+ tap_code(KC_AUDIO_VOL_UP);
} else {
- tap_code(KC_MINS);
+ tap_code(KC_AUDIO_VOL_DOWN);
}
break;
}