diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h b/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h new file mode 100644 index 0000000..e385af8 --- /dev/null +++ b/libraries/ecore/src/lib/ecore_psl1ght/Ecore_Psl1ght_Keys.h | |||
@@ -0,0 +1,78 @@ | |||
1 | #ifndef ECORE_PSL1GHT_KEYS_H__ | ||
2 | # define ECORE_PSL1GHT_KEYS_H__ | ||
3 | |||
4 | struct _ecore_psl1ght_keys_s | ||
5 | { | ||
6 | int code; | ||
7 | const char *name; | ||
8 | const char *compose; | ||
9 | }; | ||
10 | |||
11 | static const struct _ecore_psl1ght_keys_s keystable[] = | ||
12 | { | ||
13 | { KB_RAWKEY_NO_EVENT, "0x00", "" }, | ||
14 | { KB_RAWKEY_BS, "BackSpace", "\010" }, | ||
15 | { KB_RAWKEY_TAB, "Tab", "\011" }, | ||
16 | { KB_RAWKEY_ENTER, "Return", "\015" }, | ||
17 | { KB_RAWKEY_PAUSE, "Pause", "Pause" }, | ||
18 | { KB_RAWKEY_ESCAPE, "Escape", "\033" }, | ||
19 | { KB_RAWKEY_SPACE, "space", " " }, | ||
20 | |||
21 | /* Skip uppercase letters */ | ||
22 | { KB_RAWKEY_LEFT_BRACKET_101, "bracketleft", "[" }, | ||
23 | { KB_RAWKEY_BACKSLASH_101, "backslash", "\\" }, | ||
24 | { KB_RAWKEY_RIGHT_BRACKET_101, "bracketright", "]" }, | ||
25 | { KB_RAWKEY_ACCENT_CIRCONFLEX_106, "asciicircumm", "^" }, | ||
26 | { KB_RAWKEY_DELETE, "Delete", "\177" }, | ||
27 | /* End of ASCII mapped keysyms */ | ||
28 | |||
29 | /* Numeric keypad */ | ||
30 | { KB_RAWKEY_KPAD_0, "KP0", "0" }, | ||
31 | { KB_RAWKEY_KPAD_1, "KP1", "1" }, | ||
32 | { KB_RAWKEY_KPAD_2, "KP2", "2" }, | ||
33 | { KB_RAWKEY_KPAD_3, "KP3", "3" }, | ||
34 | { KB_RAWKEY_KPAD_4, "KP4", "4" }, | ||
35 | { KB_RAWKEY_KPAD_5, "KP5", "5" }, | ||
36 | { KB_RAWKEY_KPAD_6, "KP6", "6" }, | ||
37 | { KB_RAWKEY_KPAD_7, "KP7", "7" }, | ||
38 | { KB_RAWKEY_KPAD_8, "KP8", "8" }, | ||
39 | { KB_RAWKEY_KPAD_9, "KP9", "9" }, | ||
40 | { KB_RAWKEY_KPAD_PERIOD, "period", "." }, | ||
41 | { KB_RAWKEY_KPAD_SLASH, "KP_Divide", "/" }, | ||
42 | { KB_RAWKEY_KPAD_ASTERISK, "KP_Multiply", "*" }, | ||
43 | { KB_RAWKEY_KPAD_MINUS, "KP_Minus", "-" }, | ||
44 | { KB_RAWKEY_KPAD_PLUS, "KP_Plus", "+" }, | ||
45 | { KB_RAWKEY_KPAD_ENTER, "KP_Enter", "\015" }, | ||
46 | |||
47 | /* Arrows + Home/End pad */ | ||
48 | { KB_RAWKEY_UP_ARROW, "Up", "Up" }, | ||
49 | { KB_RAWKEY_DOWN_ARROW, "Down", "Down" }, | ||
50 | { KB_RAWKEY_RIGHT_ARROW, "Right", "Right" }, | ||
51 | { KB_RAWKEY_LEFT_ARROW, "Left", "Left" }, | ||
52 | { KB_RAWKEY_INSERT, "Insert", "Insert" }, | ||
53 | { KB_RAWKEY_HOME, "Home", "Home" }, | ||
54 | { KB_RAWKEY_END, "End", "End" }, | ||
55 | { KB_RAWKEY_PAGE_UP, "Page_Up", "Page_Up" }, | ||
56 | { KB_RAWKEY_PAGE_DOWN, "Page_Down", "Page_Down" }, | ||
57 | |||
58 | /* Function keys */ | ||
59 | { KB_RAWKEY_F1, "F1", "F1" }, | ||
60 | { KB_RAWKEY_F2, "F2", "F2" }, | ||
61 | { KB_RAWKEY_F3, "F3", "F3" }, | ||
62 | { KB_RAWKEY_F4, "F4", "F4" }, | ||
63 | { KB_RAWKEY_F5, "F5", "F5" }, | ||
64 | { KB_RAWKEY_F6, "F6", "F6" }, | ||
65 | { KB_RAWKEY_F7, "F7", "F7" }, | ||
66 | { KB_RAWKEY_F8, "F8", "F8" }, | ||
67 | { KB_RAWKEY_F9, "F9", "F9" }, | ||
68 | { KB_RAWKEY_F10, "F10", "F10" }, | ||
69 | { KB_RAWKEY_F11, "F11", "F11" }, | ||
70 | { KB_RAWKEY_F12, "F12", "F12" }, | ||
71 | |||
72 | /* Key state modifier keys */ | ||
73 | { KB_RAWKEY_KPAD_NUMLOCK, "Num_Lock", "Num_Lock" }, | ||
74 | { KB_RAWKEY_CAPS_LOCK, "Caps_Lock", "Caps_Lock" }, | ||
75 | { KB_RAWKEY_SCROLL_LOCK, "Scroll_Lock", "Scroll_Lock" }, | ||
76 | }; | ||
77 | |||
78 | #endif /* ECORE_PSL1GHT_KEYS_H__ */ | ||