InputWin32.cpp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. /*
  2. * This source file is part of RmlUi, the HTML/CSS Interface Middleware
  3. *
  4. * For the latest information, see http://github.com/mikke89/RmlUi
  5. *
  6. * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
  7. * Copyright (c) 2019 The RmlUi Team, and contributors
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in
  17. * all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. * THE SOFTWARE.
  26. *
  27. */
  28. #include <win32/InputWin32.h>
  29. #include <RmlUi/Core/Context.h>
  30. #include <RmlUi/Core/Input.h>
  31. #include <RmlUi/Core/StringUtilities.h>
  32. #include <RmlUi/Debugger.h>
  33. #include <Shell.h>
  34. static int GetKeyModifierState();
  35. static void InitialiseKeymap();
  36. static const int KEYMAP_SIZE = 256;
  37. static Rml::Core::Input::KeyIdentifier key_identifier_map[KEYMAP_SIZE];
  38. bool InputWin32::Initialise()
  39. {
  40. InitialiseKeymap();
  41. return true;
  42. }
  43. void InputWin32::Shutdown()
  44. {
  45. }
  46. void InputWin32::ProcessWindowsEvent(UINT message, WPARAM w_param, LPARAM l_param)
  47. {
  48. if (context == nullptr)
  49. return;
  50. // Process all mouse and keyboard events
  51. switch (message)
  52. {
  53. case WM_LBUTTONDOWN:
  54. context->ProcessMouseButtonDown(0, GetKeyModifierState());
  55. break;
  56. case WM_LBUTTONUP:
  57. context->ProcessMouseButtonUp(0, GetKeyModifierState());
  58. break;
  59. case WM_RBUTTONDOWN:
  60. context->ProcessMouseButtonDown(1, GetKeyModifierState());
  61. break;
  62. case WM_RBUTTONUP:
  63. context->ProcessMouseButtonUp(1, GetKeyModifierState());
  64. break;
  65. case WM_MBUTTONDOWN:
  66. context->ProcessMouseButtonDown(2, GetKeyModifierState());
  67. break;
  68. case WM_MBUTTONUP:
  69. context->ProcessMouseButtonUp(2, GetKeyModifierState());
  70. break;
  71. case WM_MOUSEMOVE:
  72. context->ProcessMouseMove(LOWORD(l_param), HIWORD(l_param), GetKeyModifierState());
  73. break;
  74. case WM_MOUSEWHEEL:
  75. context->ProcessMouseWheel(static_cast<float>((short) HIWORD(w_param)) / static_cast<float>(-WHEEL_DELTA), GetKeyModifierState());
  76. break;
  77. case WM_KEYDOWN:
  78. {
  79. Rml::Core::Input::KeyIdentifier key_identifier = key_identifier_map[w_param];
  80. int key_modifier_state = GetKeyModifierState();
  81. // Check for F8 to toggle the debugger.
  82. if (key_identifier == Rml::Core::Input::KI_F8)
  83. {
  84. Rml::Debugger::SetVisible(!Rml::Debugger::IsVisible());
  85. break;
  86. }
  87. context->ProcessKeyDown(key_identifier, key_modifier_state);
  88. }
  89. break;
  90. case WM_CHAR:
  91. {
  92. static char16_t first_u16_code_unit = 0;
  93. char16_t c = (char16_t)w_param;
  94. Rml::Core::CodePoint code_point = (Rml::Core::CodePoint)c;
  95. // Windows sends two-wide characters as two messages.
  96. if (c >= 0xD800 && c < 0xDC00)
  97. {
  98. // First 16-bit code unit of a two-wide character.
  99. first_u16_code_unit = c;
  100. }
  101. else
  102. {
  103. if (c >= 0xDC00 && c < 0xE000 && first_u16_code_unit != 0)
  104. {
  105. // Second 16-bit code unit of a two-wide character.
  106. Rml::Core::String utf8 = Rml::Core::StringUtilities::ToUTF8({ first_u16_code_unit, c });
  107. code_point = Rml::Core::StringUtilities::ToCodePoint(utf8.data());
  108. }
  109. else if (c == '\r')
  110. {
  111. // Windows sends new-lines as carriage returns, convert to endlines.
  112. code_point = (Rml::Core::CodePoint)'\n';
  113. }
  114. first_u16_code_unit = 0;
  115. // Only send through printable characters.
  116. if ((char32_t)code_point >= 32 || code_point == (Rml::Core::CodePoint)'\n')
  117. context->ProcessTextInput(code_point);
  118. }
  119. }
  120. break;
  121. case WM_KEYUP:
  122. context->ProcessKeyUp(key_identifier_map[w_param], GetKeyModifierState());
  123. break;
  124. }
  125. }
  126. static int GetKeyModifierState()
  127. {
  128. int key_modifier_state = 0;
  129. // Query the state of all modifier keys
  130. if (GetKeyState(VK_CAPITAL) & 1)
  131. {
  132. key_modifier_state |= Rml::Core::Input::KM_CAPSLOCK;
  133. }
  134. if (HIWORD(GetKeyState(VK_SHIFT)) & 1)
  135. {
  136. key_modifier_state |= Rml::Core::Input::KM_SHIFT;
  137. }
  138. if (GetKeyState(VK_NUMLOCK) & 1)
  139. {
  140. key_modifier_state |= Rml::Core::Input::KM_NUMLOCK;
  141. }
  142. if (HIWORD(GetKeyState(VK_CONTROL)) & 1)
  143. {
  144. key_modifier_state |= Rml::Core::Input::KM_CTRL;
  145. }
  146. if (HIWORD(GetKeyState(VK_MENU)) & 1)
  147. {
  148. key_modifier_state |= Rml::Core::Input::KM_ALT;
  149. }
  150. return key_modifier_state;
  151. }
  152. // These are defined in winuser.h of MinGW 64 but are missing from MinGW 32
  153. // Visual Studio has them by default
  154. #if defined(__MINGW32__) && !defined(__MINGW64__)
  155. #define VK_OEM_NEC_EQUAL 0x92
  156. #define VK_OEM_FJ_JISHO 0x92
  157. #define VK_OEM_FJ_MASSHOU 0x93
  158. #define VK_OEM_FJ_TOUROKU 0x94
  159. #define VK_OEM_FJ_LOYA 0x95
  160. #define VK_OEM_FJ_ROYA 0x96
  161. #define VK_OEM_AX 0xE1
  162. #define VK_ICO_HELP 0xE3
  163. #define VK_ICO_00 0xE4
  164. #define VK_ICO_CLEAR 0xE6
  165. #endif // !defined(__MINGW32__) || defined(__MINGW64__)
  166. static void InitialiseKeymap()
  167. {
  168. // Initialise the key map with default values.
  169. memset(key_identifier_map, 0, sizeof(key_identifier_map));
  170. // Assign individual values.
  171. key_identifier_map['A'] = Rml::Core::Input::KI_A;
  172. key_identifier_map['B'] = Rml::Core::Input::KI_B;
  173. key_identifier_map['C'] = Rml::Core::Input::KI_C;
  174. key_identifier_map['D'] = Rml::Core::Input::KI_D;
  175. key_identifier_map['E'] = Rml::Core::Input::KI_E;
  176. key_identifier_map['F'] = Rml::Core::Input::KI_F;
  177. key_identifier_map['G'] = Rml::Core::Input::KI_G;
  178. key_identifier_map['H'] = Rml::Core::Input::KI_H;
  179. key_identifier_map['I'] = Rml::Core::Input::KI_I;
  180. key_identifier_map['J'] = Rml::Core::Input::KI_J;
  181. key_identifier_map['K'] = Rml::Core::Input::KI_K;
  182. key_identifier_map['L'] = Rml::Core::Input::KI_L;
  183. key_identifier_map['M'] = Rml::Core::Input::KI_M;
  184. key_identifier_map['N'] = Rml::Core::Input::KI_N;
  185. key_identifier_map['O'] = Rml::Core::Input::KI_O;
  186. key_identifier_map['P'] = Rml::Core::Input::KI_P;
  187. key_identifier_map['Q'] = Rml::Core::Input::KI_Q;
  188. key_identifier_map['R'] = Rml::Core::Input::KI_R;
  189. key_identifier_map['S'] = Rml::Core::Input::KI_S;
  190. key_identifier_map['T'] = Rml::Core::Input::KI_T;
  191. key_identifier_map['U'] = Rml::Core::Input::KI_U;
  192. key_identifier_map['V'] = Rml::Core::Input::KI_V;
  193. key_identifier_map['W'] = Rml::Core::Input::KI_W;
  194. key_identifier_map['X'] = Rml::Core::Input::KI_X;
  195. key_identifier_map['Y'] = Rml::Core::Input::KI_Y;
  196. key_identifier_map['Z'] = Rml::Core::Input::KI_Z;
  197. key_identifier_map['0'] = Rml::Core::Input::KI_0;
  198. key_identifier_map['1'] = Rml::Core::Input::KI_1;
  199. key_identifier_map['2'] = Rml::Core::Input::KI_2;
  200. key_identifier_map['3'] = Rml::Core::Input::KI_3;
  201. key_identifier_map['4'] = Rml::Core::Input::KI_4;
  202. key_identifier_map['5'] = Rml::Core::Input::KI_5;
  203. key_identifier_map['6'] = Rml::Core::Input::KI_6;
  204. key_identifier_map['7'] = Rml::Core::Input::KI_7;
  205. key_identifier_map['8'] = Rml::Core::Input::KI_8;
  206. key_identifier_map['9'] = Rml::Core::Input::KI_9;
  207. key_identifier_map[VK_BACK] = Rml::Core::Input::KI_BACK;
  208. key_identifier_map[VK_TAB] = Rml::Core::Input::KI_TAB;
  209. key_identifier_map[VK_CLEAR] = Rml::Core::Input::KI_CLEAR;
  210. key_identifier_map[VK_RETURN] = Rml::Core::Input::KI_RETURN;
  211. key_identifier_map[VK_PAUSE] = Rml::Core::Input::KI_PAUSE;
  212. key_identifier_map[VK_CAPITAL] = Rml::Core::Input::KI_CAPITAL;
  213. key_identifier_map[VK_KANA] = Rml::Core::Input::KI_KANA;
  214. key_identifier_map[VK_HANGUL] = Rml::Core::Input::KI_HANGUL;
  215. key_identifier_map[VK_JUNJA] = Rml::Core::Input::KI_JUNJA;
  216. key_identifier_map[VK_FINAL] = Rml::Core::Input::KI_FINAL;
  217. key_identifier_map[VK_HANJA] = Rml::Core::Input::KI_HANJA;
  218. key_identifier_map[VK_KANJI] = Rml::Core::Input::KI_KANJI;
  219. key_identifier_map[VK_ESCAPE] = Rml::Core::Input::KI_ESCAPE;
  220. key_identifier_map[VK_CONVERT] = Rml::Core::Input::KI_CONVERT;
  221. key_identifier_map[VK_NONCONVERT] = Rml::Core::Input::KI_NONCONVERT;
  222. key_identifier_map[VK_ACCEPT] = Rml::Core::Input::KI_ACCEPT;
  223. key_identifier_map[VK_MODECHANGE] = Rml::Core::Input::KI_MODECHANGE;
  224. key_identifier_map[VK_SPACE] = Rml::Core::Input::KI_SPACE;
  225. key_identifier_map[VK_PRIOR] = Rml::Core::Input::KI_PRIOR;
  226. key_identifier_map[VK_NEXT] = Rml::Core::Input::KI_NEXT;
  227. key_identifier_map[VK_END] = Rml::Core::Input::KI_END;
  228. key_identifier_map[VK_HOME] = Rml::Core::Input::KI_HOME;
  229. key_identifier_map[VK_LEFT] = Rml::Core::Input::KI_LEFT;
  230. key_identifier_map[VK_UP] = Rml::Core::Input::KI_UP;
  231. key_identifier_map[VK_RIGHT] = Rml::Core::Input::KI_RIGHT;
  232. key_identifier_map[VK_DOWN] = Rml::Core::Input::KI_DOWN;
  233. key_identifier_map[VK_SELECT] = Rml::Core::Input::KI_SELECT;
  234. key_identifier_map[VK_PRINT] = Rml::Core::Input::KI_PRINT;
  235. key_identifier_map[VK_EXECUTE] = Rml::Core::Input::KI_EXECUTE;
  236. key_identifier_map[VK_SNAPSHOT] = Rml::Core::Input::KI_SNAPSHOT;
  237. key_identifier_map[VK_INSERT] = Rml::Core::Input::KI_INSERT;
  238. key_identifier_map[VK_DELETE] = Rml::Core::Input::KI_DELETE;
  239. key_identifier_map[VK_HELP] = Rml::Core::Input::KI_HELP;
  240. key_identifier_map[VK_LWIN] = Rml::Core::Input::KI_LWIN;
  241. key_identifier_map[VK_RWIN] = Rml::Core::Input::KI_RWIN;
  242. key_identifier_map[VK_APPS] = Rml::Core::Input::KI_APPS;
  243. key_identifier_map[VK_SLEEP] = Rml::Core::Input::KI_SLEEP;
  244. key_identifier_map[VK_NUMPAD0] = Rml::Core::Input::KI_NUMPAD0;
  245. key_identifier_map[VK_NUMPAD1] = Rml::Core::Input::KI_NUMPAD1;
  246. key_identifier_map[VK_NUMPAD2] = Rml::Core::Input::KI_NUMPAD2;
  247. key_identifier_map[VK_NUMPAD3] = Rml::Core::Input::KI_NUMPAD3;
  248. key_identifier_map[VK_NUMPAD4] = Rml::Core::Input::KI_NUMPAD4;
  249. key_identifier_map[VK_NUMPAD5] = Rml::Core::Input::KI_NUMPAD5;
  250. key_identifier_map[VK_NUMPAD6] = Rml::Core::Input::KI_NUMPAD6;
  251. key_identifier_map[VK_NUMPAD7] = Rml::Core::Input::KI_NUMPAD7;
  252. key_identifier_map[VK_NUMPAD8] = Rml::Core::Input::KI_NUMPAD8;
  253. key_identifier_map[VK_NUMPAD9] = Rml::Core::Input::KI_NUMPAD9;
  254. key_identifier_map[VK_MULTIPLY] = Rml::Core::Input::KI_MULTIPLY;
  255. key_identifier_map[VK_ADD] = Rml::Core::Input::KI_ADD;
  256. key_identifier_map[VK_SEPARATOR] = Rml::Core::Input::KI_SEPARATOR;
  257. key_identifier_map[VK_SUBTRACT] = Rml::Core::Input::KI_SUBTRACT;
  258. key_identifier_map[VK_DECIMAL] = Rml::Core::Input::KI_DECIMAL;
  259. key_identifier_map[VK_DIVIDE] = Rml::Core::Input::KI_DIVIDE;
  260. key_identifier_map[VK_F1] = Rml::Core::Input::KI_F1;
  261. key_identifier_map[VK_F2] = Rml::Core::Input::KI_F2;
  262. key_identifier_map[VK_F3] = Rml::Core::Input::KI_F3;
  263. key_identifier_map[VK_F4] = Rml::Core::Input::KI_F4;
  264. key_identifier_map[VK_F5] = Rml::Core::Input::KI_F5;
  265. key_identifier_map[VK_F6] = Rml::Core::Input::KI_F6;
  266. key_identifier_map[VK_F7] = Rml::Core::Input::KI_F7;
  267. key_identifier_map[VK_F8] = Rml::Core::Input::KI_F8;
  268. key_identifier_map[VK_F9] = Rml::Core::Input::KI_F9;
  269. key_identifier_map[VK_F10] = Rml::Core::Input::KI_F10;
  270. key_identifier_map[VK_F11] = Rml::Core::Input::KI_F11;
  271. key_identifier_map[VK_F12] = Rml::Core::Input::KI_F12;
  272. key_identifier_map[VK_F13] = Rml::Core::Input::KI_F13;
  273. key_identifier_map[VK_F14] = Rml::Core::Input::KI_F14;
  274. key_identifier_map[VK_F15] = Rml::Core::Input::KI_F15;
  275. key_identifier_map[VK_F16] = Rml::Core::Input::KI_F16;
  276. key_identifier_map[VK_F17] = Rml::Core::Input::KI_F17;
  277. key_identifier_map[VK_F18] = Rml::Core::Input::KI_F18;
  278. key_identifier_map[VK_F19] = Rml::Core::Input::KI_F19;
  279. key_identifier_map[VK_F20] = Rml::Core::Input::KI_F20;
  280. key_identifier_map[VK_F21] = Rml::Core::Input::KI_F21;
  281. key_identifier_map[VK_F22] = Rml::Core::Input::KI_F22;
  282. key_identifier_map[VK_F23] = Rml::Core::Input::KI_F23;
  283. key_identifier_map[VK_F24] = Rml::Core::Input::KI_F24;
  284. key_identifier_map[VK_NUMLOCK] = Rml::Core::Input::KI_NUMLOCK;
  285. key_identifier_map[VK_SCROLL] = Rml::Core::Input::KI_SCROLL;
  286. key_identifier_map[VK_OEM_NEC_EQUAL] = Rml::Core::Input::KI_OEM_NEC_EQUAL;
  287. key_identifier_map[VK_OEM_FJ_JISHO] = Rml::Core::Input::KI_OEM_FJ_JISHO;
  288. key_identifier_map[VK_OEM_FJ_MASSHOU] = Rml::Core::Input::KI_OEM_FJ_MASSHOU;
  289. key_identifier_map[VK_OEM_FJ_TOUROKU] = Rml::Core::Input::KI_OEM_FJ_TOUROKU;
  290. key_identifier_map[VK_OEM_FJ_LOYA] = Rml::Core::Input::KI_OEM_FJ_LOYA;
  291. key_identifier_map[VK_OEM_FJ_ROYA] = Rml::Core::Input::KI_OEM_FJ_ROYA;
  292. key_identifier_map[VK_SHIFT] = Rml::Core::Input::KI_LSHIFT;
  293. key_identifier_map[VK_CONTROL] = Rml::Core::Input::KI_LCONTROL;
  294. key_identifier_map[VK_MENU] = Rml::Core::Input::KI_LMENU;
  295. key_identifier_map[VK_BROWSER_BACK] = Rml::Core::Input::KI_BROWSER_BACK;
  296. key_identifier_map[VK_BROWSER_FORWARD] = Rml::Core::Input::KI_BROWSER_FORWARD;
  297. key_identifier_map[VK_BROWSER_REFRESH] = Rml::Core::Input::KI_BROWSER_REFRESH;
  298. key_identifier_map[VK_BROWSER_STOP] = Rml::Core::Input::KI_BROWSER_STOP;
  299. key_identifier_map[VK_BROWSER_SEARCH] = Rml::Core::Input::KI_BROWSER_SEARCH;
  300. key_identifier_map[VK_BROWSER_FAVORITES] = Rml::Core::Input::KI_BROWSER_FAVORITES;
  301. key_identifier_map[VK_BROWSER_HOME] = Rml::Core::Input::KI_BROWSER_HOME;
  302. key_identifier_map[VK_VOLUME_MUTE] = Rml::Core::Input::KI_VOLUME_MUTE;
  303. key_identifier_map[VK_VOLUME_DOWN] = Rml::Core::Input::KI_VOLUME_DOWN;
  304. key_identifier_map[VK_VOLUME_UP] = Rml::Core::Input::KI_VOLUME_UP;
  305. key_identifier_map[VK_MEDIA_NEXT_TRACK] = Rml::Core::Input::KI_MEDIA_NEXT_TRACK;
  306. key_identifier_map[VK_MEDIA_PREV_TRACK] = Rml::Core::Input::KI_MEDIA_PREV_TRACK;
  307. key_identifier_map[VK_MEDIA_STOP] = Rml::Core::Input::KI_MEDIA_STOP;
  308. key_identifier_map[VK_MEDIA_PLAY_PAUSE] = Rml::Core::Input::KI_MEDIA_PLAY_PAUSE;
  309. key_identifier_map[VK_LAUNCH_MAIL] = Rml::Core::Input::KI_LAUNCH_MAIL;
  310. key_identifier_map[VK_LAUNCH_MEDIA_SELECT] = Rml::Core::Input::KI_LAUNCH_MEDIA_SELECT;
  311. key_identifier_map[VK_LAUNCH_APP1] = Rml::Core::Input::KI_LAUNCH_APP1;
  312. key_identifier_map[VK_LAUNCH_APP2] = Rml::Core::Input::KI_LAUNCH_APP2;
  313. key_identifier_map[VK_OEM_1] = Rml::Core::Input::KI_OEM_1;
  314. key_identifier_map[VK_OEM_PLUS] = Rml::Core::Input::KI_OEM_PLUS;
  315. key_identifier_map[VK_OEM_COMMA] = Rml::Core::Input::KI_OEM_COMMA;
  316. key_identifier_map[VK_OEM_MINUS] = Rml::Core::Input::KI_OEM_MINUS;
  317. key_identifier_map[VK_OEM_PERIOD] = Rml::Core::Input::KI_OEM_PERIOD;
  318. key_identifier_map[VK_OEM_2] = Rml::Core::Input::KI_OEM_2;
  319. key_identifier_map[VK_OEM_3] = Rml::Core::Input::KI_OEM_3;
  320. key_identifier_map[VK_OEM_4] = Rml::Core::Input::KI_OEM_4;
  321. key_identifier_map[VK_OEM_5] = Rml::Core::Input::KI_OEM_5;
  322. key_identifier_map[VK_OEM_6] = Rml::Core::Input::KI_OEM_6;
  323. key_identifier_map[VK_OEM_7] = Rml::Core::Input::KI_OEM_7;
  324. key_identifier_map[VK_OEM_8] = Rml::Core::Input::KI_OEM_8;
  325. key_identifier_map[VK_OEM_AX] = Rml::Core::Input::KI_OEM_AX;
  326. key_identifier_map[VK_OEM_102] = Rml::Core::Input::KI_OEM_102;
  327. key_identifier_map[VK_ICO_HELP] = Rml::Core::Input::KI_ICO_HELP;
  328. key_identifier_map[VK_ICO_00] = Rml::Core::Input::KI_ICO_00;
  329. key_identifier_map[VK_PROCESSKEY] = Rml::Core::Input::KI_PROCESSKEY;
  330. key_identifier_map[VK_ICO_CLEAR] = Rml::Core::Input::KI_ICO_CLEAR;
  331. key_identifier_map[VK_ATTN] = Rml::Core::Input::KI_ATTN;
  332. key_identifier_map[VK_CRSEL] = Rml::Core::Input::KI_CRSEL;
  333. key_identifier_map[VK_EXSEL] = Rml::Core::Input::KI_EXSEL;
  334. key_identifier_map[VK_EREOF] = Rml::Core::Input::KI_EREOF;
  335. key_identifier_map[VK_PLAY] = Rml::Core::Input::KI_PLAY;
  336. key_identifier_map[VK_ZOOM] = Rml::Core::Input::KI_ZOOM;
  337. key_identifier_map[VK_PA1] = Rml::Core::Input::KI_PA1;
  338. key_identifier_map[VK_OEM_CLEAR] = Rml::Core::Input::KI_OEM_CLEAR;
  339. }