From 1e4d95bde0c17b5bd2b0dd997963c032ed7089e3 Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Fri, 8 Dec 2017 12:00:46 -0500 Subject: aded keymap header and custom macros for custom keys --- keymap.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keymap.h diff --git a/keymap.h b/keymap.h new file mode 100644 index 0000000..760eaf9 --- /dev/null +++ b/keymap.h @@ -0,0 +1,22 @@ +#include +#define KEY_ALPHAMAP 133980 +#define KEY_NUMBERMAP 25341 +#define KEY_SPECIALMAP 133981 +#define KEY_STICKYMAP 133982 +unsigned long skey_keymap[3][3][10] = { + { + {KEY_Q, KEY_W, KEY_E, KEY_R, KEY_T, KEY_Y, KEY_U, KEY_I, KEY_O, KEY_P}, + {KEY_A, KEY_S, KEY_D, KEY_F, KEY_G, KEY_H, KEY_J, KEY_K, KEY_L, KEY_STICKYMAP}, + {KEY_Z, KEY_X, KEY_C, KEY_V, KEY_B, KEY_N, KEY_M, KEY_ALPHAMAP, KEY_NUMBERMAP, KEY_SPECIALMAP} + }, + { + {KEY_Q, KEY_W, KEY_E, KEY_R, KEY_T, KEY_Y, KEY_U, KEY_I, KEY_O, KEY_P}, + {KEY_A, KEY_S, KEY_D, KEY_F, KEY_G, KEY_H, KEY_J, KEY_K, KEY_L, KEY_STICKYMAP}, + {KEY_Z, KEY_X, KEY_C, KEY_V, KEY_B, KEY_N, KEY_M, KEY_ALPHAMAP, KEY_NUMBERMAP, KEY_SPECIALMAP} + }, + { + {KEY_Q, KEY_W, KEY_E, KEY_R, KEY_T, KEY_Y, KEY_U, KEY_I, KEY_O, KEY_P}, + {KEY_A, KEY_S, KEY_D, KEY_F, KEY_G, KEY_H, KEY_J, KEY_K, KEY_L, KEY_STICKYMAP}, + {KEY_Z, KEY_X, KEY_C, KEY_V, KEY_B, KEY_N, KEY_M, KEY_ALPHAMAP, KEY_NUMBERMAP, KEY_SPECIALMAP} + } +}; -- cgit v1.1