Skip to content

Commit

Permalink
Adding a gaming layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Promytheos committed Feb 10, 2024
1 parent 7127279 commit d6cd767
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keyboards/keychron/q11/ansi_encoder/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define TAPPING_TOGGLE 2

// Configure the global tapping term (default: 200ms)
#define TAPPING_TERM 150
#define TAPPING_TERM 200

// Enable rapid switch from tap to hold, disables double tap hold auto-repeat.
#define QUICK_TAP_TERM 0
Expand Down
11 changes: 10 additions & 1 deletion keyboards/keychron/q11/ansi_encoder/keymaps/phaze/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

enum layers{
BASE,
FN
FN,
GAME
};

#define KC_TASK LGUI(KC_TAB)
Expand Down Expand Up @@ -51,12 +52,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, KC_MS_LEFT, KC_MS_DOWN, KC_MS_UP, KC_MS_RIGHT, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, KC_WH_D,
_______, _______, _______, _______, _______, KC_MS_BTN2, KC_MS_BTN1, _______, _______, _______, KC_WH_R , KC_WH_U, KC_WH_L),
[GAME] = LAYOUT_91_ansi(
KC_MUTE, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, KC_MUTE,
_______, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_PGUP,
_______, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGDN,
_______, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_HOME,
_______, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
_______, KC_LCTL, KC_LGUI, KC_LALT, TT(FN), KC_SPC, KC_SPC, KC_RALT, TT(FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
};

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[FN] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
[GAME] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
};
#endif // ENCODER_MAP_ENABLE

Expand Down
1 change: 0 additions & 1 deletion keyboards/keychron/q11/ansi_encoder/keymaps/phaze/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
ENCODER_MAP_ENABLE = yes
MOUSEKEY_ENABLE = yes
DIPSWITCH_ENABLE = no

0 comments on commit d6cd767

Please sign in to comment.