本文整理汇总了C++中KEYMAP函数的典型用法代码示例。如果您正苦于以下问题:C++ KEYMAP函数的具体用法?C++ KEYMAP怎么用?C++ KEYMAP使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了KEYMAP函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: KEYMAP
/* Layer 0: Default Layer
* ,-----------------------------------------------------------.
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
* |-----------------------------------------------------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| |
* |-----------------------------------------------------' |
* |Contro| A| S| D| F| G| H| J| K| L|Fn3| '|Return |
* |-----------------------------------------------------------|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn1|
* |-----------------------------------------------------------|
* |Fn7|Gui |Alt |Fn4 |Alt |Gui|Fn6|Fn6|Ctr|
* `-----------------------------------------------------------'
*/
KEYMAP(ESC, 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, \
LCTL,A, S, D, F, G, H, J, K, L, FN3, QUOT,ENT, \
LSFT,Z, X, C, V, B, N, M, COMM,DOT, FN2, RSFT,FN1, \
FN7, LGUI,LALT,FN4, RALT,BSLS,GRV, FN6, RCTL),
/* Layer 1: HHKB mode (HHKB Fn)
* ,-----------------------------------------------------------.
* |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
* |-----------------------------------------------------------|
* |Caps | | | | | | | |Psc|Slk|Pus|Up | | |
* |-----------------------------------------------------' |
* |Contro|VoD|VoU|Mut| | | *| /|Hom|PgU|Lef|Rig|Enter |
* |-----------------------------------------------------------|
* |Shift | | | | | | +| -|End|PgD|Dow|Shift |xxx|
* |-----------------------------------------------------------|
* | |Gui |Alt | |Alt |Gui| | |Ctr|
开发者ID:beckettman,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap.c
示例2: defined
#include "keymap_workman.h"
#elif defined(KEYMAP_CUB)
#include "keymap_cub.h"
#else
static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KEYMAP( // layer 0 : default
// left hand
EQL, 1, 2, 3, 4, 5, ESC,
TAB, Q, W, E, R, T, FN2,
CAPS, A, S, D, F, G,
LSFT, Z, X, C, V, B, FN1,
LGUI,GRV, BSLS,LEFT,LALT,
LCTL,LALT,
HOME,
BSPC,DEL, END,
// right hand
FN3, 6, 7, 8, 9, 0, MINS,
LBRC,Y, U, I, O, P, RBRC,
H, J, K, L, SCLN,QUOT,
FN1, N, M, COMM,DOT, SLSH,RSFT,
FN5,DOWN,UP, RGHT,RGUI,
RALT,RCTL,
PGUP,
PGDN,ENT, SPC
),
KEYMAP( // layer 1 : function and symbol keys
// left hand
TRNS,F1, F2, F3, F4, F5, F11,
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN4,
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,
开发者ID:atykhonov,项目名称:tmk_keyboard,代码行数:32,代码来源:keymap.c
示例3: KEYMAP
* ,-----------------------------------------------------------. ,-----------. ,---------------.
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa| |Ins|Hom|PgU| |NmL| /| *| -|
* |-----------------------------------------------------------| |-----------| |---------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD| | 7| 8| 9| |
* |-----------------------------------------------------------| `-----------' |-----------| +|
* |CapsLo| A| S| D| F| G| H| J| K| L| ;| '|Return | | 4| 5| 6| |
* |-----------------------------------------------------------| ,---. |---------------|
* |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| |
* |-----------------------------------------------------------| ,-----------. |-----------|Ent|
* |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl| |Lef|Dow|Rig| | 0| .| |
* `-----------------------------------------------------------' `-----------' `---------------'
*/
KEYMAP(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,BRK,
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS,
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, DEL, END, PGDN, P7, P8, P9,
CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, PPLS,
LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, UP, P1, P2, P3,
LCTL,LGUI,LALT, FN0, RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT
),
/* 1: SpaceFN
* ,-----------------------------------------------------------.
* |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
* |-----------------------------------------------------------|
* | | | |Esc| | | |Hom|Up |End|Psc|Slk|Pau|Ins |
* |-----------------------------------------------------------|
* | | | | | | |PgU|Lef|Dow|Rig| | | |
* |-----------------------------------------------------------|
* | | | | | |Spc|PgD|` |~ | |Men| |
* |-----------------------------------------------------------|
* | | | | | | | | |
开发者ID:AdamYoung1234,项目名称:tmk_keyboard,代码行数:32,代码来源:keymap_spacefn.c
示例4: KEYMAP
/* Layer 0: Default Layer
* ,-----------------------------------------------------------.
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
* |-----------------------------------------------------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| |
* |-----------------------------------------------------' |
* |Contro| A| S| D| F| G| H| J| K| L|Fn3| '|Return |
* |-----------------------------------------------------------|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn1|
* |-----------------------------------------------------------|
* |Fn7|Gui |Alt |Fn4 |Alt |Gui|Fn6|Fn6|Ctr|
* `-----------------------------------------------------------'
*/
KEYMAP( KB_ESC, KB_1, KB_2, KB_3, KB_4, KB_5, KB_6, KB_7, KB_8, KB_9, KB_0, KB_MINS, KB_EQL, KB_BSLS, KB_GRV, \
KB_TAB, KB_Q, KB_W, KB_E, KB_R, KB_T, KB_Y, KB_U, KB_I, KB_O, KB_P, KB_LBRC, KB_RBRC, KB_BSPC, \
KB_LCTL, KB_A, KB_S, KB_D, KB_F, KB_G, KB_H, KB_J, KB_K, KB_L, KB_FN3, KB_QUOT, KB_ENT, \
KB_LSFT, KB_Z, KB_X, KB_C, KB_V, KB_B, KB_N, KB_M, KB_COMM, KB_DOT, KB_FN2, KB_RSFT, KB_FN1, \
KB_FN7, KB_LGUI, KB_LALT, KB_FN4, KB_RALT, KB_RGUI, KB_APP, KB_DEL),
/* Layer 1: HHKB mode (HHKB Fn)
* ,-----------------------------------------------------------.
* |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
* |-----------------------------------------------------------|
* |Caps | | | | | | | |Psc|Slk|Pus|Up | | |
* |-----------------------------------------------------' |
* |Contro|VoD|VoU|Mut| | | *| /|Hom|PgU|Lef|Rig|Enter |
* |-----------------------------------------------------------|
* |Shift | | | | | | +| -|End|PgD|Dow|Shift |xxx|
* |-----------------------------------------------------------|
* | |Gui |Alt | |Alt |Gui| | |Ctr|
* `-----------------------------------------------------------'
开发者ID:doxkb,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap.c
示例5: KEYMAP
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ TAB │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │▒▒▒▒▒│█████│
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│CAPSL│ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │NUHS │ENTER│█████│
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│LSHFT│ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │▒▒▒▒▒│RSHFT│▒▒▒▒▒│
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│LCTRL│L_GUI│L_ALT│█████│█████│█████│ SPC │█████│█████│█████│R_ALT│ FN0 │ APP │RCTRL│█████│
└─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
*/
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: ANSI qwerty */
KEYMAP(ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, NO, BSPC, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, NO, \
CAPS, A, S, D, F, G, H, J, K, L, SCLN, QUOT, NUHS, ENT , \
LSFT, BSLS, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, RSFT, NO, \
LCTL, LGUI, LALT, SPC, RALT, FN0, APP, RCTL),
/* 1: Fn layer
┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐
│GRAVE│ F1 │ F2 │ F3 │ F4 │ F5 │ F6 │ F7 │ F8 │ F9 │ F10 │ F11 │ F12 │▒▒▒▒▒│ │
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ │ │ Up │ │ │ │ │ │PGUP │PGDWN│PRTSC│SCLCK│PAUSE│▒▒▒▒▒│█████│
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ │Left │Down │Right│ │ │ │ │ │ │ │ │ │ │█████│
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ │ │ │ │ │ │ │ │ │ │ │ │▒▒▒▒▒│ │▒▒▒▒▒│
├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ │ │ │█████│█████│█████│ │█████│█████│█████│ │ │ │ │█████│
└─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
开发者ID:Kpat1,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap_iso.c
示例6: KEYMAP
* ,---------------------------------------------------------. ,---------------.
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs| |Gui| -| +| *|
* |---------------------------------------------------------| |---------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | 7| 8| 9| /|
* |---------------------------------------------------------| |---------------|
* |Ctrl | A| S| D| F| G| H| J| K| L| Fn| '|Return| | 4| 5| 6| ,|
* |---------------------------------------------------------| |---------------|
* |Shift | Z| X| C| V| B| N| M| ,| ,| Fn|Shift | | 1| 2| 3| |
* `---------------------------------------------------------' |-----------|Ent|
* |Fn |alt | Space |Gui |Fn | | 0| .| |
* `-----------------------------------------------' `---------------'
*/
KEYMAP(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, NLCK,EQL, PSLS,PAST,
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, P7, P8, P9, PMNS,
LCTL,A, S, D, F, G, H, J, K, L, FN1, QUOT, FN0, P4, P5, P6, PPLS,
LSFT,Z, X, C, V, B, N, M, COMM,DOT, FN2, FN3, P1, P2, P3, PENT,
FN4, LALT, SPC, LGUI,BSLS,LGUI,RCTL,RCTL, LGUI, PDOT
),
// HHKB & WASD
KEYMAP(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
CAPS,NO, NO, NO, NO, NO, NO, NO, PSCR,SLCK,PAUS,UP, NO, P7, P8, P9, PMNS,
LCTL,VOLD,VOLU,MUTE,NO, NO, NO, NO, HOME,PGUP,LEFT,RGHT, FN0, P4, P5, P6, PPLS,
LSFT,NO, NO, NO, NO, NO, NO, NO, END, PGDN,DOWN, FN3, P1, P2, P3, PENT,
LCTL,LALT, SPC, LGUI,INS, LGUI,RCTL,RCTL, P0, PDOT
),
// vi mousekeys
KEYMAP(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
CAPS,NO, NO, NO, NO, NO, WH_L,WH_D,WH_U,WH_R,PSCR,SLCK,PAUS, P7, P8, P9, PMNS,
开发者ID:bonneval,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap_hasu.c
示例7: KEYMAP
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*0:qwerty*/
KEYMAP(ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, FN1, DEL, \
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, \
LGUI,LALT, SPC, FN0,FN2),
/*1:FN 1*/
KEYMAP(TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,MPRV,MPLY,MNXT,MUTE,VOLD,VOLU,TRNS,TRNS, \
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS, UP,TRNS, TRNS, \
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,HOME,PGUP,LEFT,RGHT, TRNS, \
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, END,PGDN,DOWN, TRNS, \
TRNS,TRNS, TRNS, TRNS,TRNS),
/*2:FN 2*/
KEYMAP(TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
TRNS, P, Q, K, 8, 2, X, T, A, 5, J,TRNS,TRNS, TRNS, \
TRNS, E, L, O, I, C, H, 4, 0, U, D,TRNS,TRNS, TRNS, \
TRNS, G, Y, R, W, 3, 0, N, 6, M,TRNS,TRNS, TRNS, \
TRNS, B, F, 1, Z, S, Z, 7,TRNS,TRNS,TRNS, TRNS, \
TRNS,TRNS, TRNS, TRNS,TRNS),
/*1:FN 3*/
KEYMAP(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,BTN1,TRNS,BTN2,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,MS_U,TRNS, TRNS, \
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,MS_L,MS_R, TRNS, \
开发者ID:Pekaso,项目名称:mykeyboard,代码行数:31,代码来源:keymap_poker.c
示例8: KEYMAP
/* already set to a dvorak layout. It assumes that the dvorak mapping */
/* will be happening on the PC side and sends "un-dvorakized" */
/* keycodes. (So it sends qwerty letters, but specially-shuffled */
/* punctuation.) This is helpful for laptops where you want to be */
/* able to use the internal keyboard in dvorak without having to */
/* change the OS mappings. */
/* This is an older variant of the multidvorak layout that has
dual-use modifiers. Ctrl is down-arrow when tapped, alt is
up-arrow, and shift is enter.*/
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: qwerty */
KEYMAP(KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, \
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, \
KC_ESC, KC_TAB, KC_LGUI, KC_FN13, KC_BSPC, KC_FN11, KC_FN12, \
// KC_MINS and KC_LBRC are inverse-dvorakized
KC_SPC, KC_FN0, KC_QUOT, KC_LBRC, KC_ENT), \
/* 1: fn with undvorak-ized punctuation */
KEYMAP(SHIFT(KC_1), SHIFT(KC_2), SHIFT(KC_MINS), SHIFT(KC_EQUAL), SHIFT(KC_BSLS), \
KC_PGUP, KC_7, KC_8, KC_9, SHIFT(KC_8), \
SHIFT(KC_3), SHIFT(KC_4), SHIFT(KC_9), SHIFT(KC_0), KC_GRAVE, \
KC_PGDN, KC_4, KC_5, KC_6, SHIFT(KC_RBRC), \
SHIFT(KC_5), SHIFT(KC_6), KC_MINS, KC_EQUAL, SHIFT(KC_GRAVE), \
SHIFT(KC_7), KC_1, KC_2, KC_3, KC_BSLS, \
KC_FN1, SHIFT(KC_INS), KC_LGUI, KC_FN4, KC_BSPC, KC_FN11, KC_FN12, \
KC_SPC, KC_FN0, KC_E, KC_0, KC_RBRC), \
/* 2: arrows and function keys */
KEYMAP(KC_INS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_UP, KC_F7, KC_F8, KC_F9, KC_F10, \
KC_DEL, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, KC_DOWN, KC_F4, KC_F5, KC_F6, KC_F11, \
KC_FN5, KC_NO, KC_NO, KC_NO, KC_FN3, KC_NO, KC_F1, KC_F2, KC_F3, KC_F12, \
开发者ID:arrdem,项目名称:tmk_keyboard,代码行数:32,代码来源:keymap_multidvorak_tap.c
示例9: KEYMAP
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \|BS | |Ins|Hom|PgU| |NmL| /| *| -|
* |-----------------------------------------------------------| |-----------| |---------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD| | 7| 8| 9| |
* |-----------------------------------------------------------| `-----------' |-----------| +|
* |CapsLo| A| S| D| F| G| H| J| K| L| ;| '| #|Retu| | 4| 5| 6| |
* |-----------------------------------------------------------| ,---. |---------------|
* |Shif| \| Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| |
* |-----------------------------------------------------------| ,-----------. |-----------|Ent|
* |Ctrl| |Alt | Space |Alt | |Ctrl| |Lef|Dow|Rig| | 0| .| |
* `----' `---------------------------------------' `----' `-----------' `---------------'
*/
KEYMAP(
F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
PSCR,ESC, GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS,
SLCK,INT4, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS,
PAUS,INT5, CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, UP, P4, P5, P6, PCMM,
APP, INT6, LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, LEFT,INT2,RGHT, P1, P2, P3, PENT,
RGUI,LGUI, LCTL, LALT, SPC, RALT, RCTL, DOWN, NO, P0, PDOT,NO
),
};
uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col)
{
return pgm_read_byte(&keymaps[(layer)][(row)][(col)]);
}
uint8_t keymap_fn_layer(uint8_t fn_bits)
{
return pgm_read_byte(&fn_layer[biton(fn_bits)]);
开发者ID:JeffreySung,项目名称:tmk_keyboard,代码行数:32,代码来源:keymap_122.c
示例10: KEYMAP
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// qwerty
KEYMAP( \
ESC, F1, F2, F3, F4, F5, PSCR,SLCK,BRK, F6, F7, F8, F9, F10, F11, F12, \
GRV, 1, 2, 3, 4, 5, 6, INS, HOME,PGUP, 7, 8, 9, 0, MINS,EQL, BSPC, \
TAB, Q, W, E, R, T, DEL, END, PGDN,Y, U, I, O, P, LBRC,RBRC,BSLS, \
CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \
LSFT,Z, X, C, V, B, UP, N, M, COMM,DOT, SLSH,RSFT, \
LCTL,LGUI,LALT, SPC, LEFT,DOWN,RGHT, SPC, RALT,RGUI,APP, RCTL)
};
const uint16_t PROGMEM fn_actions[] = {};
开发者ID:wenbu,项目名称:tmk_keyboard,代码行数:14,代码来源:keymap.c
示例11: KEYMAP
* |-----------------------------------------------------------+---+---+---+---|
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |Num| /| *| -|
* |-----------------------------------------------------------+---+---+---+---|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| 7| 8| 9| |
* |-----------------------------------------------------------+---+---+---| +|
* |Caps | A| S| D| F| G| H| J| K| L| ;| '|Return | 4| 5| 6| |
* |-----------------------------------------------------------+---+---+---+---|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn0| 1| 2| 3| |
* |-----------------------------------------------------------+---+---+---|Ent|
* |Ctrl|Gui |Alt | Space |Alt |Fn0 |Gui |Ctrl| 0| 0| .| |
* `---------------------------------------------------------------------------'
*/
KEYMAP(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,PAUS,INS, DEL, PGUP,PGDN, \
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC,NLCK,PSLS,PAST,PMNS, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS,P7, P8, P9, PPLS, \
CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT,GRV, ENT, P4, P5, P6, PPLS, \
LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT,FN0, P1, P2, P3, PENT, \
LCTL,LGUI,LALT, SPC, RALT,FN0, RGUI, RCTL,P0, P0, PDOT,PENT ),
/* Keymap 1: Fn Layer
* ,---------------------------------------------------------------------------.
* |Fn5|Fn6|Fn7|Fn8|Fn9| | | | | | | | | | | | |Hom|End|
* |-----------------------------------------------------------+---+---+---+---|
* |F10|F11|F12|F13|F14|F15|F16|F17|F18| | | | | | | | | |
* |-----------------------------------------------------------+---+---+---+---|
* | | | | | | | | | | | | | | | | | | |
* |-----------------------------------------------------------|---+---+---| |
* | | | | | | | | | | | | | | | | | |
* |-----------------------------------------------------------|---+---+---+---|
* | | | |Fn2|Fn1|Fn3|VoD|VoU|Mut| | | | | | | | |
* |-----------------------------------------------------------+---+---+---| |
开发者ID:AdamYoung1234,项目名称:tmk_keyboard_custom,代码行数:31,代码来源:keymap_default.c
示例12: KEYMAP
* ,-----------------------------------------------------------.
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|???|BS |
* |-----------------------------------------------------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
* |-----------------------------------------------------------|
* |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|xxx|Ret |
* |-----------------------------------------------------------|
* |Shif|xxx| Z| X| C| V| B| N| M| ,| ,| /|xxx|Shift |
* |-----------------------------------------------------------|
* |Ctrl |Gui|Alt | Space |Alt |Gui|Ctrl |
* `-----------------------------------------------------------'
*/
KEYMAP(
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSLS,GRV, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSPC, \
LCTL,A, S, D, F, G, H, J, K, L, FN1, QUOT,NO, ENT, \
LSFT,NO, Z, X, C, V, B, N, M, COMM,DOT, FN2, NO, FN0, \
LCTL,LGUI,LALT, FN3, RGUI,RCTL \
),
KEYMAP(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
CAPS,NO, NO, NO, NO, NO, NO, NO, PSCR,SLCK,PAUS, UP, NO, BSPC, \
LCTL,VOLD,VOLU,MUTE,NO, NO, PAST,PSLS,HOME,PGUP,LEFT,RGHT,NO, ENT, \
LSFT,NO, NO, NO, NO, NO, NO, PPLS,PMNS,END, PGDN,DOWN,NO, TRNS, \
LCTL,LGUI,LALT, SPC, RGUI,RCTL \
),
KEYMAP(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, \
TAB, NO, NO, NO, NO, NO, WH_L,WH_D,WH_U,WH_R,WSTP,WBAK,WFWD,BSPC, \
开发者ID:0mark,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap_hasu.c
示例13: KEYMAP
/* 0: qwerty
* ,-----------------------------------------------------------. ,---.
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Yen| BS| |PgU|
* |-----------------------------------------------------------| |---|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |PgD|
* |-----------------------------------------------------------| `---'
* |Caps | A| S| D| F| G| H| J| K| L| ;| '| # | Ent|
* |--------------------------------------------------------------.
* |Shift|Fn| Z| X| C| V| B| N| M| ,| .| /| Fn|Shift| Up|
* |------------------------------------------------------------------.
* |Ctrl|Alt|Gui |MHen| Space| Space|Henk|Gui |Ctrl| Fn|Left|Down|Rgt|
* `------------------------------------------------------------------'
*/
KEYMAP(
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, PGUP, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, PGDN, \
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,NUHS,ENT, \
FN2, FN0,Z, X, C, V, B, N, M, COMM,DOT, SLSH, FN0,FN3, UP, \
LCTL,LALT,LGUI,MHEN, SPC, SPC, HENK,RGUI,RCTL,FN0, LEFT,DOWN,RGHT),
/* 1: Fn Layer
* ,-----------------------------------------------------------. ,---.
* | `| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| |Del| | |
* |-----------------------------------------------------------| |---|
* | | | | | | | | |Psc|Slk|Pau| | | | | |
* |-----------------------------------------------------------| `---'
* | | | | | | | | | Hm|PgU| | | | |
* |--------------------------------------------------------------.
* | |Fn0| | | | | | | |End|PgD| |Fn0| |PgUp|
* |-------------------------------------------------------------------.
* | | | | | | | | | | Fn0|Home|PgDn|End |
* `-------------------------------------------------------------------'
*/
开发者ID:kaider,项目名称:tmk_keyboard,代码行数:32,代码来源:keymap_skully.c
示例14: KEYMAP
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: base qwerty layout - when fn0 is pressed then action defined later down will happen (momentarily activate layer 1) */
KEYMAP(ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, HOME, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, PGUP, \
DEL, A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, PGDN, \
FN2, Z, X, C, V, B, N, M, COMM,DOT, SLSH,RSFT,UP, END, \
LCTL, LGUI,LALT, FN5, RALT,FN0 ,RCTL,LEFT,DOWN,RGHT),
/* 1: fn layer 1 - function keys */
KEYMAP(GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, PSCR,PAUS,DEL, INS, \
CALC, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, VOLD,VOLU,MUTE, FN6, \
CAPS, SLCK,NLCK,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,UP, TRNS,TRNS,APP, FN7, \
TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,LEFT,DOWN,RGHT,TRNS,PGUP, WHOM, \
TRNS, TRNS,TRNS, FN1, TRNS,TRNS,TRNS,HOME,PGDN,END),
/* 2: fn layer 2 - multimedia */
KEYMAP( PWR, SLEP,WAKE,MNXT,MPRV,MSTP,MPLY,MSEL,TRNS,TRNS,TRNS,FN3, FN4, ACL0, HOME, \
WSCH, TRNS,UP ,TRNS,TRNS,TRNS,TRNS,WH_L,WH_D,WH_U,WH_R,TRNS,TRNS,ACL1, PGUP, \
MYCM, LEFT,DOWN,RGHT,TRNS,TRNS,TRNS,MS_L,MS_D,MS_U,MS_R,TRNS,ACL2, PGDN, \
TRNS, WHOM,WBAK,WFWD,WSTP,WREF,WFAV,BTN1,BTN2,BTN3,BTN4,TRNS,MS_U, END, \
TRNS, TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,MS_L,MS_D,MS_R),
/* 3: fn layer 3 - SpaceFN */
KEYMAP( GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, INS, \
CALC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,HOME,UP, END, TRNS,PSCR,PAUS,BSPC,TRNS, \
TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,PGUP,LEFT,DOWN,RGHT,TRNS,TRNS,TRNS, TRNS, \
TRNS, TRNS,TRNS,TRNS,TRNS,SPC, PGDN,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
TRNS, TRNS,TRNS, TRNS, TRNS,APP, TRNS,TRNS,TRNS,TRNS),
开发者ID:tentator,项目名称:tmk_keyboard,代码行数:30,代码来源:keymap_tentboard.c
示例15: KEYMAP
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: Qwerty Type Mode */
KEYMAP(
BSLS, P, O, I, U, Y, \
QUOT, SCLN, L, K, J, H, \
ENT, SLSH, DOT, COMM, M, N, \
T, R, E, W, Q, TAB, \
G, F, D, S, A, BSPC, \
B, V, C, X, Z, ESC, \
FN9, FN11, SPC, FN12, CAPS, \
RGUI, FN10, LCTL, FN8, LALT \
),
/* 1: FPS Mode */
KEYMAP(
BSLS, P, O, I, U, Y, \
QUOT, SCLN, L, K, J, H, \
ENT, SLSH, DOT, COMM, M, N, \
R, E, W, Q, 1, TAB, \
F, D, S, A, 2, CAPS, \
V, C, X, Z, 3, ESC, \
G, B, LSFT, SPC, T, \
FN7, FN4, LCTL, FN3, LALT \
),
/* 2: MOBA Mode */
KEYMAP(
BSLS, P, O, I, U, Y, \
QUOT, SCLN, L, K, J, H, \
ENT, SLSH, DOT, COMM, M, N, \
5, 4, 3, 2, 1, GRV, \
开发者ID:TheAristonaut,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap_poker.c
示例16: KEYMAP
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KEYMAP(
FN0, VOLD, MUTE, VOLU,
MPRV, MPLY, MSTP, MNXT
),
KEYMAP(
TRNS, FN2, FN3, FN4,
FN5, FN6, FN7, FN8
),
};
enum function_id {
RGBLED_TOGGLE,
RGBLED_STEP_MODE,
RGBLED_INCREASE_HUE,
RGBLED_DECREASE_HUE,
RGBLED_INCREASE_SAT,
RGBLED_DECREASE_SAT,
RGBLED_INCREASE_VAL,
RGBLED_DECREASE_VAL,
};
const action_t PROGMEM fn_actions[] = {
[0] = ACTION_LAYER_TAP_KEY(1, KC_ESC),
[1] = ACTION_FUNCTION(RGBLED_TOGGLE),
[2] = ACTION_FUNCTION(RGBLED_STEP_MODE),
[3] = ACTION_FUNCTION(RGBLED_INCREASE_HUE),
开发者ID:di0ib,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap_nano.c
示例17: KEYMAP
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: qwerty */
KEYMAP(ESC, 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, \
CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT,NO, ENT, \
LSFT,NO, Z, X, C, V, B, N, M, COMM,DOT, SLSH,NO, RSFT, \
LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, RCTL),
};
const uint16_t PROGMEM fn_actions[] = {};
开发者ID:0mark,项目名称:tmk_keyboard,代码行数:11,代码来源:keymap_plain.c
示例18: KEYMAP
/* Layer 0: Default Layer
* ,----------------------------------------------------------------------------.
* |Esc/~| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|VolDn|VolUp|
* |-----------------------------------------------------------------------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|Bkspc/Pipe|
* |-----------------------------------------------------------------------------|
* |Control | A| S| D| F| G| H| J| K| L| ;| '|Enter |
* |-----------------------------------------------------------------------------|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |Fn0 |
* |-----------------------------------------------------------------------------|
* |Gui |Alt | SpaceFN |Alt |Gui |
* `-----------------------------------------------------'
*/
KEYMAP(FN2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, _VOLDOWN, _VOLUP, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, FN3, \
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,FN0, \
LGUI,LALT, FN1, RALT,RGUI),
/* Layer 1: HHKB mode (HHKB Fn)
* ,-----------------------------------------------------------.
* |Pwr| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Ins|Del|
* |-----------------------------------------------------------|
* |Caps | | | | | | | |Psc|Slk|Pus|Up | |Backs|
* |-----------------------------------------------------------|
* | |VoD|VoU|Mut| | | *| /|Hom|PgU|Lef|Rig|Enter |
* |-----------------------------------------------------------|
* | | | | | | | +| -|End|PgD|Dow| | |
* `-----------------------------------------------------------'
* | | | | | |
* `-------------------------------------------'
开发者ID:altercation,项目名称:tmk_firrmware_hhkb_teensy2,代码行数:31,代码来源:keymap_es.c
示例19: KEYMAP
* |~ | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp | |Ins|Hom|PgU|
* |-----------------------------------------------------------| |-----------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD|
* |-----------------------------------------------------------| `-----------'
* |FN1 | A| S| D| F| G| H| J| K| L| ;| '|Return |
* |-----------------------------------------------------------| ,---.
* |Shft | Z| X| C| V| B| N| M| ,| .| /|Shift | |Up |
* |-----------------------------------------------------------| ,-----------.
* |Ctl|Alt|Gui| Space |Gui|Alt|FN1|Ctl| |Lef|Dow|Rig|
* `-----------------------------------------------------------' `-----------'
*/
KEYMAP(\
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, EJECT, \
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, INS, HOME, PGUP, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, BSLS, DEL, END, PGDN, \
LCTL, A, S, D, F, G, H, J, K, L, SCLN, QUOT, ENT, \
LSFT, NO, Z, X, C, V, B, N, M, COMM, DOT, SLSH, RSFT, UP, \
LCTL, LALT, LGUI, SPC, RGUI, RALT, FN1, RCTL, LEFT, DOWN, RGHT),
/* EXAMPLE ISO keymap, see the NUBS and NUHS keycodes
* KEYMAP(\
* ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR, SLCK, BRK, \
* GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, INS, HOME, PGUP, \
* TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, NUHS, DEL, END, PGDN, \
* CAPS, A, S, D, F, G, H, J, K, L, SCLN, QUOT, ENT, \
* LSFT, NUBS, Z, X, C, V, B, N, M, COMM, DOT, SLSH, RSFT, UP, \
* LCTL, FN1, LALT, SPC, RALT, RGUI, APP, RCTL, LEFT, DOWN, RGHT),
*/
/* Layer 0: Default Layer
开发者ID:parix,项目名称:tmk_keyboard,代码行数:31,代码来源:keymap.c
示例20: KEYMAP
/* 0: colemak
* ,-----------------------------------------------------------.
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Caps |
* |-----------------------------------------------------------|
* |Tab | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \|
* |-----------------------------------------------------------|
* |Backsp| A| R| S| T| D| H| N| E| I| O| '| Ent
|
请发表评论