1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include <linux/input.h>
#define KEY_ALPHAMAP 133980
#define KEY_NUMBERMAP 25341
#define KEY_SPECIALMAP 133981
#define KEY_STICKYMAP 133982
#define KEY_MS_2ND 133983
#define MS_UP 133984
#define MS_LEFT 133985
#define MS_RIGHT 133986
#define MS_DOWN 133987
#define MS_SCRL_UP 133988
#define MS_SCRL_DOWN 133989
unsigned long skey_keymap[4][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_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_0},
{KEY_GRAVE, KEY_LEFTSHIFT, KEY_SEMICOLON, KEY_APOSTROPHE, KEY_LEFTBRACE, KEY_RIGHTBRACE, KEY_BACKSLASH, KEY_MINUS, KEY_EQUAL, KEY_STICKYMAP},
{KEY_LEFTCTRL, KEY_LEFTMETA, KEY_LEFTALT, KEY_SPACE, KEY_COMMA, KEY_DOT, KEY_SLASH, KEY_ALPHAMAP, KEY_NUMBERMAP, KEY_SPECIALMAP}
},
{
{KEY_ESC, KEY_TAB, BTN_LEFT, KEY_PAGEUP, BTN_RIGHT, BTN_MIDDLE, MS_SCRL_UP, KEY_INSERT, KEY_DELETE, KEY_BACKSPACE},
{KEY_CAPSLOCK, KEY_LEFTSHIFT, KEY_HOME, KEY_PAGEDOWN, KEY_END, KEY_UP, MS_SCRL_DOWN, KEY_MS_2ND, KEY_ENTER, KEY_STICKYMAP},
{KEY_LEFTCTRL, KEY_LEFTMETA, KEY_LEFTALT, KEY_SPACE, KEY_LEFT, KEY_DOWN, KEY_RIGHT, KEY_ALPHAMAP, KEY_NUMBERMAP, KEY_SPECIALMAP}
},
{
{KEY_ESC, KEY_TAB, BTN_LEFT, MS_UP, BTN_RIGHT, BTN_MIDDLE, MS_SCRL_UP, KEY_INSERT, KEY_DELETE, KEY_BACKSPACE},
{KEY_CAPSLOCK, KEY_LEFTSHIFT, MS_LEFT, MS_DOWN, MS_RIGHT, KEY_UP, MS_SCRL_DOWN, KEY_MS_2ND, KEY_ENTER, KEY_STICKYMAP},
{KEY_LEFTCTRL, KEY_LEFTMETA, KEY_LEFTALT, KEY_SPACE, KEY_LEFT, KEY_DOWN, KEY_RIGHT, KEY_ALPHAMAP, KEY_NUMBERMAP, KEY_SPECIALMAP}
}
};
|