summaryrefslogtreecommitdiff
path: root/keymap.h
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-08 12:00:46 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-08 12:00:46 -0500
commit1e4d95bde0c17b5bd2b0dd997963c032ed7089e3 (patch)
tree11ca147784985be99ea061c39234ba3094151b09 /keymap.h
parent205f777b328f34f5a06bdaf5325a766601f01677 (diff)
aded keymap header and custom macros for custom keys
Diffstat (limited to 'keymap.h')
-rw-r--r--keymap.h22
1 files changed, 22 insertions, 0 deletions
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 <linux/input.h>
+#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}
+ }
+};