Archivováno
1
0
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly nebo pull requesty.
tmk_keyboard_custom/keyboard/gh60/keymap_poker_bit.c

51 řádky
2.9 KiB
C
Surový Normální zobrazení Historie

2013-11-21 07:32:45 +00:00
#include "keymap_common.h"
2013-02-20 01:40:07 +00:00
// Poker fix with toggle and bit operation
// Fn + Esc = `
// Fn + {left, down, up, right} = {home, pgdown, pgup, end}
2013-11-21 07:32:45 +00:00
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
2013-04-04 16:39:17 +00:00
/* 0: qwerty */
2013-02-12 08:08:51 +00:00
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, \
2013-02-15 06:24:50 +00:00
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
2013-02-12 08:08:51 +00:00
LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, \
2013-02-20 01:40:07 +00:00
LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
2013-04-04 16:39:17 +00:00
/* 4: Poker Default + Fn'd */
[4] = KEYMAP_ANSI(
2013-02-20 01:40:07 +00:00
TRNS,F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
CAPS,FN2, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN4, END, TRNS, \
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
TRNS,TRNS,TRNS, FN1, TRNS,TRNS,TRNS,TRNS),
2013-04-04 16:39:17 +00:00
/* 5: Poker with Arrow */
2013-02-12 08:08:51 +00:00
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, \
2013-02-20 01:40:07 +00:00
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, PGUP, \
TRNS,TRNS,TRNS, TRNS, FN3, HOME,PGDN,END),
2013-04-04 16:39:17 +00:00
/* 6: Poker with Esc */
2013-02-12 08:08:51 +00:00
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, \
2013-02-20 01:40:07 +00:00
TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
2013-04-04 16:39:17 +00:00
/* 7: Poker with Arrow + Fn'd */
KEYMAP_ANSI(
2013-02-20 01:40:07 +00:00
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, \
2013-02-20 01:40:07 +00:00
TRNS,TRNS,TRNS, TRNS, TRNS,LEFT,DOWN,RGHT),
2013-02-12 08:08:51 +00:00
};
2013-11-21 07:32:45 +00:00
const uint16_t PROGMEM fn_actions[] = {
2013-02-12 08:08:51 +00:00
/* Poker Layout */
2013-04-04 16:39:17 +00:00
[0] = ACTION_LAYER_BIT_XOR(1, 0b0101, ON_BOTH), // Poker Fn(with fix for Esc)
[1] = ACTION_LAYER_TOGGLE(5), // Poker Arrow toggle
[2] = ACTION_LAYER_TOGGLE(6), // Poker Esc toggle
[3] = ACTION_LAYER_BIT_XOR(1, 0b1101, ON_BOTH), // Poker Fn(with fix for Arrow)
[4] = ACTION_MODS_KEY(MOD_RCTL|MOD_RSFT, KC_ESC), // FN3 Task(RControl,RShift+Esc)
2013-02-12 08:08:51 +00:00
};