forked from mirrors/qmk_firmware
- keymap_poker.h poker emulation - keymap_poker_set.h poker emulation with Esc fix and cursor fix - keymap_poker_bit.h poker emulation with Esc fix and cursor fix
110 lines
6.6 KiB
C
110 lines
6.6 KiB
C
static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
/* Poker Default Layer
|
|
* ,-----------------------------------------------------------.
|
|
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
|
|
* |-----------------------------------------------------------|
|
|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
|
|
* |-----------------------------------------------------------|
|
|
* |Caps | A| S| D| F| G| H| J| K| L| ;| '|Return |
|
|
* |-----------------------------------------------------------|
|
|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |
|
|
* |-----------------------------------------------------------|
|
|
* |Ctrl|Gui |Alt | Space |Fn |Gui |App |Ctrl|
|
|
* `-----------------------------------------------------------'
|
|
*/
|
|
/* Layer 0: qwerty */
|
|
KEYMAP_ANSI(
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
|
|
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
|
|
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
|
|
LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, \
|
|
LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
|
|
/* Layer 1: colemak */
|
|
KEYMAP_ANSI(
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
|
|
TAB, Q, W, F, P, G, J, L, U, Y, SCLN,LBRC,RBRC,BSLS, \
|
|
BSPC,A, R, S, T, D, H, N, E, I, O, QUOT, ENT, \
|
|
LSFT,Z, X, C, V, B, K, M, COMM,DOT, SLSH, RSFT, \
|
|
LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
|
|
/* Layer 2: dvorak */
|
|
KEYMAP_ANSI(
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC,RBRC,BSPC, \
|
|
TAB, QUOT,COMM,DOT, P, Y, F, G, C, R, L, SLSH,EQL, BSLS, \
|
|
CAPS,A, O, E, U, I, D, H, T, N, S, MINS, ENT, \
|
|
LSFT,SCLN,Q, J, K, X, B, M, W, V, Z, RSFT, \
|
|
LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
|
|
/* Layer3: workman */
|
|
KEYMAP_ANSI(
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
|
|
TAB, Q, D, R, W, B, J, F, U, P, SCLN,LBRC,RBRC,BSLS, \
|
|
BSPC,A, S, H, T, G, Y, N, E, O, I, QUOT, ENT, \
|
|
LSFT,Z, X, M, C, V, K, L, COMM,DOT, SLSH, RSFT, \
|
|
LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
|
|
/* Layer 4: Poker with Arrow */
|
|
KEYMAP_ANSI(
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, UP, \
|
|
TRNS,TRNS,TRNS, TRNS, FN1, LEFT,DOWN,RGHT),
|
|
/* Layer 5: Poker with Esc */
|
|
KEYMAP_ANSI(
|
|
ESC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
|
|
TRNS,TRNS,TRNS, TRNS, FN2, TRNS,TRNS,TRNS),
|
|
/* Layer 6: Poker with Arrow and Esc */
|
|
KEYMAP_ANSI(
|
|
ESC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, UP, \
|
|
TRNS,TRNS,TRNS, TRNS, FN3, LEFT,DOWN,RGHT),
|
|
/* Layer 7: Poker Fn'd */
|
|
KEYMAP_ANSI(
|
|
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
|
TRNS,FN6, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
|
|
TRNS,TRNS,TRNS, FN5, FN4, TRNS,TRNS,TRNS),
|
|
/* Layer 8: Poker Fn'd arrow */
|
|
KEYMAP_ANSI(
|
|
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
|
TRNS,FN7, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, PGUP, \
|
|
TRNS,TRNS,TRNS, FN4, FN5, HOME,PGDN,END),
|
|
/* Layer 9: Poker Fn'd Esc */
|
|
KEYMAP_ANSI(
|
|
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
|
TRNS,FN4, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
|
|
TRNS,TRNS,TRNS, FN7, FN6, TRNS,TRNS,TRNS),
|
|
/* Layer 10: Poker Fn'd Arrow + Esc */
|
|
KEYMAP_ANSI(
|
|
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
|
TRNS,FN5, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, PGUP, \
|
|
TRNS,TRNS,TRNS, FN6, FN7, HOME,PGDN,END),
|
|
};
|
|
|
|
/*
|
|
* Fn action definition
|
|
*/
|
|
static const uint16_t PROGMEM fn_actions[] = {
|
|
/* Poker Layout */
|
|
[0] = ACTION_LAYER_SET_P(7), // FN0 move to Fn'd when press
|
|
[1] = ACTION_LAYER_SET_P(8), // FN1 move to Fn'd arrow when press
|
|
[2] = ACTION_LAYER_SET_P(9), // FN2 move to Fn'd Esc when press
|
|
[3] = ACTION_LAYER_SET_P(10), // FN3 move to Fn'd arrow + Esc when press
|
|
|
|
[4] = ACTION_LAYER_SET_R(0), // FN4 move to default when release
|
|
[5] = ACTION_LAYER_SET_R(4), // FN5 move to arrow when release
|
|
[6] = ACTION_LAYER_SET_R(5), // FN6 move to Esc when release
|
|
[7] = ACTION_LAYER_SET_R(6), // FN7 move to arrow + Esc when release
|
|
|
|
[8] = ACTION_RMODS_KEY(MOD_BIT(KC_RCTL)|MOD_BIT(KC_RSFT), KC_ESC), // FN8 Task(RControl,RShift+Esc)
|
|
};
|