summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}
+ }
+};