vnc_keysym.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. #include "keymaps.h"
  2. static const name2keysym_t name2keysym[]={
  3. /* ascii */
  4. { "space", 0x020},
  5. { "exclam", 0x021},
  6. { "quotedbl", 0x022},
  7. { "numbersign", 0x023},
  8. { "dollar", 0x024},
  9. { "percent", 0x025},
  10. { "ampersand", 0x026},
  11. { "apostrophe", 0x027},
  12. { "parenleft", 0x028},
  13. { "parenright", 0x029},
  14. { "asterisk", 0x02a},
  15. { "plus", 0x02b},
  16. { "comma", 0x02c},
  17. { "minus", 0x02d},
  18. { "period", 0x02e},
  19. { "slash", 0x02f},
  20. { "0", 0x030},
  21. { "1", 0x031},
  22. { "2", 0x032},
  23. { "3", 0x033},
  24. { "4", 0x034},
  25. { "5", 0x035},
  26. { "6", 0x036},
  27. { "7", 0x037},
  28. { "8", 0x038},
  29. { "9", 0x039},
  30. { "colon", 0x03a},
  31. { "semicolon", 0x03b},
  32. { "less", 0x03c},
  33. { "equal", 0x03d},
  34. { "greater", 0x03e},
  35. { "question", 0x03f},
  36. { "at", 0x040},
  37. { "A", 0x041},
  38. { "B", 0x042},
  39. { "C", 0x043},
  40. { "D", 0x044},
  41. { "E", 0x045},
  42. { "F", 0x046},
  43. { "G", 0x047},
  44. { "H", 0x048},
  45. { "I", 0x049},
  46. { "J", 0x04a},
  47. { "K", 0x04b},
  48. { "L", 0x04c},
  49. { "M", 0x04d},
  50. { "N", 0x04e},
  51. { "O", 0x04f},
  52. { "P", 0x050},
  53. { "Q", 0x051},
  54. { "R", 0x052},
  55. { "S", 0x053},
  56. { "T", 0x054},
  57. { "U", 0x055},
  58. { "V", 0x056},
  59. { "W", 0x057},
  60. { "X", 0x058},
  61. { "Y", 0x059},
  62. { "Z", 0x05a},
  63. { "bracketleft", 0x05b},
  64. { "backslash", 0x05c},
  65. { "bracketright", 0x05d},
  66. { "asciicircum", 0x05e},
  67. { "underscore", 0x05f},
  68. { "grave", 0x060},
  69. { "a", 0x061},
  70. { "b", 0x062},
  71. { "c", 0x063},
  72. { "d", 0x064},
  73. { "e", 0x065},
  74. { "f", 0x066},
  75. { "g", 0x067},
  76. { "h", 0x068},
  77. { "i", 0x069},
  78. { "j", 0x06a},
  79. { "k", 0x06b},
  80. { "l", 0x06c},
  81. { "m", 0x06d},
  82. { "n", 0x06e},
  83. { "o", 0x06f},
  84. { "p", 0x070},
  85. { "q", 0x071},
  86. { "r", 0x072},
  87. { "s", 0x073},
  88. { "t", 0x074},
  89. { "u", 0x075},
  90. { "v", 0x076},
  91. { "w", 0x077},
  92. { "x", 0x078},
  93. { "y", 0x079},
  94. { "z", 0x07a},
  95. { "braceleft", 0x07b},
  96. { "bar", 0x07c},
  97. { "braceright", 0x07d},
  98. { "asciitilde", 0x07e},
  99. /* latin 1 extensions */
  100. { "nobreakspace", 0x0a0},
  101. { "exclamdown", 0x0a1},
  102. { "cent", 0x0a2},
  103. { "sterling", 0x0a3},
  104. { "currency", 0x0a4},
  105. { "yen", 0x0a5},
  106. { "brokenbar", 0x0a6},
  107. { "section", 0x0a7},
  108. { "diaeresis", 0x0a8},
  109. { "copyright", 0x0a9},
  110. { "ordfeminine", 0x0aa},
  111. { "guillemotleft", 0x0ab},
  112. { "notsign", 0x0ac},
  113. { "hyphen", 0x0ad},
  114. { "registered", 0x0ae},
  115. { "macron", 0x0af},
  116. { "degree", 0x0b0},
  117. { "plusminus", 0x0b1},
  118. { "twosuperior", 0x0b2},
  119. { "threesuperior", 0x0b3},
  120. { "acute", 0x0b4},
  121. { "mu", 0x0b5},
  122. { "paragraph", 0x0b6},
  123. { "periodcentered", 0x0b7},
  124. { "cedilla", 0x0b8},
  125. { "onesuperior", 0x0b9},
  126. { "masculine", 0x0ba},
  127. { "guillemotright", 0x0bb},
  128. { "onequarter", 0x0bc},
  129. { "onehalf", 0x0bd},
  130. { "threequarters", 0x0be},
  131. { "questiondown", 0x0bf},
  132. { "Agrave", 0x0c0},
  133. { "Aacute", 0x0c1},
  134. { "Acircumflex", 0x0c2},
  135. { "Atilde", 0x0c3},
  136. { "Adiaeresis", 0x0c4},
  137. { "Aring", 0x0c5},
  138. { "AE", 0x0c6},
  139. { "Ccedilla", 0x0c7},
  140. { "Egrave", 0x0c8},
  141. { "Eacute", 0x0c9},
  142. { "Ecircumflex", 0x0ca},
  143. { "Ediaeresis", 0x0cb},
  144. { "Igrave", 0x0cc},
  145. { "Iacute", 0x0cd},
  146. { "Icircumflex", 0x0ce},
  147. { "Idiaeresis", 0x0cf},
  148. { "ETH", 0x0d0},
  149. { "Eth", 0x0d0},
  150. { "Ntilde", 0x0d1},
  151. { "Ograve", 0x0d2},
  152. { "Oacute", 0x0d3},
  153. { "Ocircumflex", 0x0d4},
  154. { "Otilde", 0x0d5},
  155. { "Odiaeresis", 0x0d6},
  156. { "multiply", 0x0d7},
  157. { "Ooblique", 0x0d8},
  158. { "Oslash", 0x0d8},
  159. { "Ugrave", 0x0d9},
  160. { "Uacute", 0x0da},
  161. { "Ucircumflex", 0x0db},
  162. { "Udiaeresis", 0x0dc},
  163. { "Yacute", 0x0dd},
  164. { "THORN", 0x0de},
  165. { "Thorn", 0x0de},
  166. { "ssharp", 0x0df},
  167. { "agrave", 0x0e0},
  168. { "aacute", 0x0e1},
  169. { "acircumflex", 0x0e2},
  170. { "atilde", 0x0e3},
  171. { "adiaeresis", 0x0e4},
  172. { "aring", 0x0e5},
  173. { "ae", 0x0e6},
  174. { "ccedilla", 0x0e7},
  175. { "egrave", 0x0e8},
  176. { "eacute", 0x0e9},
  177. { "ecircumflex", 0x0ea},
  178. { "ediaeresis", 0x0eb},
  179. { "igrave", 0x0ec},
  180. { "iacute", 0x0ed},
  181. { "icircumflex", 0x0ee},
  182. { "idiaeresis", 0x0ef},
  183. { "eth", 0x0f0},
  184. { "ntilde", 0x0f1},
  185. { "ograve", 0x0f2},
  186. { "oacute", 0x0f3},
  187. { "ocircumflex", 0x0f4},
  188. { "otilde", 0x0f5},
  189. { "odiaeresis", 0x0f6},
  190. { "division", 0x0f7},
  191. { "oslash", 0x0f8},
  192. { "ooblique", 0x0f8},
  193. { "ugrave", 0x0f9},
  194. { "uacute", 0x0fa},
  195. { "ucircumflex", 0x0fb},
  196. { "udiaeresis", 0x0fc},
  197. { "yacute", 0x0fd},
  198. { "thorn", 0x0fe},
  199. { "ydiaeresis", 0x0ff},
  200. {"EuroSign", 0x20ac}, /* XK_EuroSign */
  201. /* latin 2 - Polish national characters */
  202. { "eogonek", 0x1ea},
  203. { "Eogonek", 0x1ca},
  204. { "aogonek", 0x1b1},
  205. { "Aogonek", 0x1a1},
  206. { "sacute", 0x1b6},
  207. { "Sacute", 0x1a6},
  208. { "lstroke", 0x1b3},
  209. { "Lstroke", 0x1a3},
  210. { "zabovedot", 0x1bf},
  211. { "Zabovedot", 0x1af},
  212. { "zacute", 0x1bc},
  213. { "Zacute", 0x1ac},
  214. { "cacute", 0x1e6},
  215. { "Cacute", 0x1c6},
  216. { "nacute", 0x1f1},
  217. { "Nacute", 0x1d1},
  218. /* modifiers */
  219. {"ISO_Level3_Shift", 0xfe03}, /* XK_ISO_Level3_Shift */
  220. {"Control_L", 0xffe3}, /* XK_Control_L */
  221. {"Control_R", 0xffe4}, /* XK_Control_R */
  222. {"Alt_L", 0xffe9}, /* XK_Alt_L */
  223. {"Alt_R", 0xffea}, /* XK_Alt_R */
  224. {"Caps_Lock", 0xffe5}, /* XK_Caps_Lock */
  225. {"Meta_L", 0xffe7}, /* XK_Meta_L */
  226. {"Meta_R", 0xffe8}, /* XK_Meta_R */
  227. {"Shift_L", 0xffe1}, /* XK_Shift_L */
  228. {"Shift_R", 0xffe2}, /* XK_Shift_R */
  229. {"Super_L", 0xffeb}, /* XK_Super_L */
  230. {"Super_R", 0xffec}, /* XK_Super_R */
  231. /* special keys */
  232. {"BackSpace", 0xff08}, /* XK_BackSpace */
  233. {"Tab", 0xff09}, /* XK_Tab */
  234. {"Return", 0xff0d}, /* XK_Return */
  235. {"Right", 0xff53}, /* XK_Right */
  236. {"Left", 0xff51}, /* XK_Left */
  237. {"Up", 0xff52}, /* XK_Up */
  238. {"Down", 0xff54}, /* XK_Down */
  239. {"Page_Down", 0xff56}, /* XK_Page_Down */
  240. {"Page_Up", 0xff55}, /* XK_Page_Up */
  241. {"Insert", 0xff63}, /* XK_Insert */
  242. {"Delete", 0xffff}, /* XK_Delete */
  243. {"Home", 0xff50}, /* XK_Home */
  244. {"End", 0xff57}, /* XK_End */
  245. {"Scroll_Lock", 0xff14}, /* XK_Scroll_Lock */
  246. {"KP_Home", 0xff95},
  247. {"KP_Left", 0xff96},
  248. {"KP_Up", 0xff97},
  249. {"KP_Right", 0xff98},
  250. {"KP_Down", 0xff99},
  251. {"KP_Prior", 0xff9a},
  252. {"KP_Page_Up", 0xff9a},
  253. {"KP_Next", 0xff9b},
  254. {"KP_Page_Down", 0xff9b},
  255. {"KP_End", 0xff9c},
  256. {"KP_Begin", 0xff9d},
  257. {"KP_Insert", 0xff9e},
  258. {"KP_Delete", 0xff9f},
  259. {"F1", 0xffbe}, /* XK_F1 */
  260. {"F2", 0xffbf}, /* XK_F2 */
  261. {"F3", 0xffc0}, /* XK_F3 */
  262. {"F4", 0xffc1}, /* XK_F4 */
  263. {"F5", 0xffc2}, /* XK_F5 */
  264. {"F6", 0xffc3}, /* XK_F6 */
  265. {"F7", 0xffc4}, /* XK_F7 */
  266. {"F8", 0xffc5}, /* XK_F8 */
  267. {"F9", 0xffc6}, /* XK_F9 */
  268. {"F10", 0xffc7}, /* XK_F10 */
  269. {"F11", 0xffc8}, /* XK_F11 */
  270. {"F12", 0xffc9}, /* XK_F12 */
  271. {"F13", 0xffca}, /* XK_F13 */
  272. {"F14", 0xffcb}, /* XK_F14 */
  273. {"F15", 0xffcc}, /* XK_F15 */
  274. {"Sys_Req", 0xff15}, /* XK_Sys_Req */
  275. {"KP_0", 0xffb0}, /* XK_KP_0 */
  276. {"KP_1", 0xffb1}, /* XK_KP_1 */
  277. {"KP_2", 0xffb2}, /* XK_KP_2 */
  278. {"KP_3", 0xffb3}, /* XK_KP_3 */
  279. {"KP_4", 0xffb4}, /* XK_KP_4 */
  280. {"KP_5", 0xffb5}, /* XK_KP_5 */
  281. {"KP_6", 0xffb6}, /* XK_KP_6 */
  282. {"KP_7", 0xffb7}, /* XK_KP_7 */
  283. {"KP_8", 0xffb8}, /* XK_KP_8 */
  284. {"KP_9", 0xffb9}, /* XK_KP_9 */
  285. {"KP_Add", 0xffab}, /* XK_KP_Add */
  286. {"KP_Separator", 0xffac},/* XK_KP_Separator */
  287. {"KP_Decimal", 0xffae}, /* XK_KP_Decimal */
  288. {"KP_Divide", 0xffaf}, /* XK_KP_Divide */
  289. {"KP_Enter", 0xff8d}, /* XK_KP_Enter */
  290. {"KP_Equal", 0xffbd}, /* XK_KP_Equal */
  291. {"KP_Multiply", 0xffaa}, /* XK_KP_Multiply */
  292. {"KP_Subtract", 0xffad}, /* XK_KP_Subtract */
  293. {"help", 0xff6a}, /* XK_Help */
  294. {"Menu", 0xff67}, /* XK_Menu */
  295. {"Print", 0xff61}, /* XK_Print */
  296. {"Mode_switch", 0xff7e}, /* XK_Mode_switch */
  297. {"Num_Lock", 0xff7f}, /* XK_Num_Lock */
  298. {"Pause", 0xff13}, /* XK_Pause */
  299. {"Escape", 0xff1b}, /* XK_Escape */
  300. /* dead keys */
  301. {"dead_grave", 0xfe50}, /* XK_dead_grave */
  302. {"dead_acute", 0xfe51}, /* XK_dead_acute */
  303. {"dead_circumflex", 0xfe52}, /* XK_dead_circumflex */
  304. {"dead_tilde", 0xfe53}, /* XK_dead_tilde */
  305. {"dead_macron", 0xfe54}, /* XK_dead_macron */
  306. {"dead_breve", 0xfe55}, /* XK_dead_breve */
  307. {"dead_abovedot", 0xfe56}, /* XK_dead_abovedot */
  308. {"dead_diaeresis", 0xfe57}, /* XK_dead_diaeresis */
  309. {"dead_abovering", 0xfe58}, /* XK_dead_abovering */
  310. {"dead_doubleacute", 0xfe59}, /* XK_dead_doubleacute */
  311. {"dead_caron", 0xfe5a}, /* XK_dead_caron */
  312. {"dead_cedilla", 0xfe5b}, /* XK_dead_cedilla */
  313. {"dead_ogonek", 0xfe5c}, /* XK_dead_ogonek */
  314. {"dead_iota", 0xfe5d}, /* XK_dead_iota */
  315. {"dead_voiced_sound", 0xfe5e}, /* XK_dead_voiced_sound */
  316. {"dead_semivoiced_sound", 0xfe5f}, /* XK_dead_semivoiced_sound */
  317. {"dead_belowdot", 0xfe60}, /* XK_dead_belowdot */
  318. {"dead_hook", 0xfe61}, /* XK_dead_hook */
  319. {"dead_horn", 0xfe62}, /* XK_dead_horn */
  320. /* localized keys */
  321. {"BackApostrophe", 0xff21},
  322. {"Muhenkan", 0xff22},
  323. {"Katakana", 0xff27},
  324. {"Hankaku", 0xff29},
  325. {"Zenkaku_Hankaku", 0xff2a},
  326. {"Henkan_Mode_Real", 0xff23},
  327. {"Henkan_Mode_Ultra", 0xff3e},
  328. {"backslash_ja", 0xffa5},
  329. {"Katakana_Real", 0xff25},
  330. {"Eisu_toggle", 0xff30},
  331. {NULL,0},
  332. };