added roadkit firmware
[tmk_keyboard.git] / keyboard / roadkit / keymap_poker_set.c
1 #include "keymap_common.h"
2
3 // Poker fix with set(state transition)
4 // Fn + Esc = `
5 // Fn + {left, down, up, right} = {home, pgdown, pgup, end}
6 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7 /* 0: qwerty */
8 KEYMAP_ANSI(
9 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
10 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
11 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
12 LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, \
13 LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
14 /* 1: Poker with Arrow */
15 KEYMAP_ANSI(
16 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
17 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
18 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
19 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, UP, \
20 TRNS,TRNS,TRNS, TRNS, FN1, LEFT,DOWN,RGHT),
21 /* 2: Poker with Esc */
22 KEYMAP_ANSI(
23 ESC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
24 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
25 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
26 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
27 TRNS,TRNS,TRNS, TRNS, FN2, TRNS,TRNS,TRNS),
28 /* 3: Poker with Arrow and Esc */
29 KEYMAP_ANSI(
30 ESC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
31 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
32 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
33 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, UP, \
34 TRNS,TRNS,TRNS, TRNS, FN3, LEFT,DOWN,RGHT),
35 /* 4: Poker Fn'd */
36 KEYMAP_ANSI(
37 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
38 TRNS,FN6, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
39 TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
40 TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
41 TRNS,TRNS,TRNS, FN5, FN4, TRNS,TRNS,TRNS),
42 /* 5: Poker Fn'd arrow */
43 KEYMAP_ANSI(
44 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
45 TRNS,FN7, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
46 TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
47 TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, PGUP, \
48 TRNS,TRNS,TRNS, FN4, FN5, HOME,PGDN,END),
49 /* 6: Poker Fn'd Esc */
50 KEYMAP_ANSI(
51 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
52 TRNS,FN4, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
53 TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
54 TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
55 TRNS,TRNS,TRNS, FN7, FN6, TRNS,TRNS,TRNS),
56 /* 7: Poker Fn'd Arrow + Esc */
57 KEYMAP_ANSI(
58 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
59 TRNS,FN5, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
60 TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN8, END, TRNS, \
61 TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, PGUP, \
62 TRNS,TRNS,TRNS, FN6, FN7, HOME,PGDN,END),
63 };
64
65 /*
66 * Fn action definition
67 */
68 const uint16_t PROGMEM fn_actions[] = {
69 /* Poker Layout */
70 [0] = ACTION_LAYER_SET(4, ON_PRESS), // FN0 move to Fn'd when press
71 [1] = ACTION_LAYER_SET(5, ON_PRESS), // FN1 move to Fn'd arrow when press
72 [2] = ACTION_LAYER_SET(6, ON_PRESS), // FN2 move to Fn'd Esc when press
73 [3] = ACTION_LAYER_SET(7, ON_PRESS), // FN3 move to Fn'd arrow + Esc when press
74
75 //[4] = ACTION_LAYER_CLEAR(ON_RELEASE), // FN4 clear overlay when release
76 [4] = ACTION_LAYER_SET(0, ON_RELEASE), // FN4 clear overlay when release
77 [5] = ACTION_LAYER_SET(1, ON_RELEASE), // FN5 move to arrow when release
78 [6] = ACTION_LAYER_SET(2, ON_RELEASE), // FN6 move to Esc when release
79 [7] = ACTION_LAYER_SET(3, ON_RELEASE), // FN7 move to arrow + Esc when release
80
81 [8] = ACTION_MODS_KEY(MOD_RCTL|MOD_RSFT, KC_ESC), // FN8 Task(RControl,RShift+Esc)
82 };
Imprint / Impressum