45 #include "x11keysym/keysym.h"
58 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
59 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
60 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
61 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
62 0x0029, 0x0116, 0x0152, 0x0126, 0x0125, 0x012e, 0x013d, 0x0052,
63 0x0146, 0x0145, 0x013e, 0x0155, 0x0041, 0x004e, 0x0049, 0x004a,
64 0x0045, 0x0016, 0x001e, 0x0026, 0x0025, 0x002e, 0x0036, 0x003d,
65 0x003e, 0x0046, 0x014c, 0x004c, 0x0141, 0x0055, 0x0149, 0x014a,
66 0x011e, 0x011c, 0x0132, 0x0121, 0x0123, 0x0124, 0x012b, 0x0134,
67 0x0133, 0x0143, 0x013b, 0x0142, 0x014b, 0x013a, 0x0131, 0x0144,
68 0x014d, 0x0115, 0x012d, 0x011b, 0x012c, 0x013c, 0x012a, 0x011d,
69 0x0122, 0x0135, 0x011a, 0x0054, 0x005d, 0x005b, 0x0136, 0x014e,
70 0x000e, 0x001c, 0x0032, 0x0021, 0x0023, 0x0024, 0x002b, 0x0034,
71 0x0033, 0x0043, 0x003b, 0x0042, 0x004b, 0x003a, 0x0031, 0x0044,
72 0x004d, 0x0015, 0x002d, 0x001b, 0x002c, 0x003c, 0x002a, 0x001d,
73 0x0022, 0x0035, 0x001a, 0x0154, 0x015d, 0x015b, 0x010e, 0x0000
85 if (key <= XK_asciitilde) {
87 uint8_t code = tmp & 0xff;
88 bool shift = tmp >> 8;
91 if (!cur_shift && shift) {
97 if (cur_shift && !shift) {
103 keys.push_back(code);
107 bool extended =
false;
110 keys.push_back(0x66);
113 keys.push_back(0x0d);
116 keys.push_back(0x5a);
119 keys.push_back(0x76);
123 keys.push_back(0x71);
127 keys.push_back(0x6c);
131 keys.push_back(0x6b);
135 keys.push_back(0x74);
139 keys.push_back(0x72);
143 keys.push_back(0x75);
147 keys.push_back(0x7d);
151 keys.push_back(0x7a);
155 keys.push_back(0x69);
158 keys.push_back(0x12);
165 keys.push_back(0x59);
172 keys.push_back(0x14);
176 keys.push_back(0x14);
179 keys.push_back(0x11);
183 keys.push_back(0x11);
186 warn(
"Unknown extended key %#x\n", key);
const uint8_t ExtendedKey
bool bool std::list< uint8_t > & keys
void keySymToPs2(uint32_t key, bool down, bool &cur_shift, std::list< uint8_t > &keys)
static const uint16_t keySymToPs2Byte[128]
Table to convert simple key symbols (0x00XX) into ps2 bytes.