InputEvents.pkg 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. $#include "Input/InputEvents.h"
  2. static const int MOUSEB_LEFT;
  3. static const int MOUSEB_MIDDLE;
  4. static const int MOUSEB_RIGHT;
  5. static const int QUAL_SHIFT;
  6. static const int QUAL_CTRL;
  7. static const int QUAL_ALT;
  8. static const int QUAL_ANY;
  9. static const int KEY_UNKNOWN;
  10. static const int KEY_A;
  11. static const int KEY_B;
  12. static const int KEY_C;
  13. static const int KEY_D;
  14. static const int KEY_E;
  15. static const int KEY_F;
  16. static const int KEY_G;
  17. static const int KEY_H;
  18. static const int KEY_I;
  19. static const int KEY_J;
  20. static const int KEY_K;
  21. static const int KEY_L;
  22. static const int KEY_M;
  23. static const int KEY_N;
  24. static const int KEY_O;
  25. static const int KEY_P;
  26. static const int KEY_Q;
  27. static const int KEY_R;
  28. static const int KEY_S;
  29. static const int KEY_T;
  30. static const int KEY_U;
  31. static const int KEY_V;
  32. static const int KEY_W;
  33. static const int KEY_X;
  34. static const int KEY_Y;
  35. static const int KEY_Z;
  36. static const int KEY_0;
  37. static const int KEY_1;
  38. static const int KEY_2;
  39. static const int KEY_3;
  40. static const int KEY_4;
  41. static const int KEY_5;
  42. static const int KEY_6;
  43. static const int KEY_7;
  44. static const int KEY_8;
  45. static const int KEY_9;
  46. static const int KEY_BACKSPACE;
  47. static const int KEY_TAB;
  48. static const int KEY_RETURN;
  49. static const int KEY_RETURN2;
  50. static const int KEY_KP_ENTER;
  51. static const int KEY_SHIFT;
  52. static const int KEY_CTRL;
  53. static const int KEY_ALT;
  54. static const int KEY_GUI;
  55. static const int KEY_PAUSE;
  56. static const int KEY_CAPSLOCK;
  57. static const int KEY_ESCAPE;
  58. static const int KEY_SPACE;
  59. static const int KEY_PAGEUP;
  60. static const int KEY_PAGEDOWN;
  61. static const int KEY_END;
  62. static const int KEY_HOME;
  63. static const int KEY_LEFT;
  64. static const int KEY_UP;
  65. static const int KEY_RIGHT;
  66. static const int KEY_DOWN;
  67. static const int KEY_SELECT;
  68. static const int KEY_PRINTSCREEN;
  69. static const int KEY_INSERT;
  70. static const int KEY_DELETE;
  71. static const int KEY_LGUI;
  72. static const int KEY_RGUI;
  73. static const int KEY_APPLICATION;
  74. static const int KEY_KP_0;
  75. static const int KEY_KP_1;
  76. static const int KEY_KP_2;
  77. static const int KEY_KP_3;
  78. static const int KEY_KP_4;
  79. static const int KEY_KP_5;
  80. static const int KEY_KP_6;
  81. static const int KEY_KP_7;
  82. static const int KEY_KP_8;
  83. static const int KEY_KP_9;
  84. static const int KEY_KP_MULTIPLY;
  85. static const int KEY_KP_PLUS;
  86. static const int KEY_KP_MINUS;
  87. static const int KEY_KP_PERIOD;
  88. static const int KEY_KP_DIVIDE;
  89. static const int KEY_F1;
  90. static const int KEY_F2;
  91. static const int KEY_F3;
  92. static const int KEY_F4;
  93. static const int KEY_F5;
  94. static const int KEY_F6;
  95. static const int KEY_F7;
  96. static const int KEY_F8;
  97. static const int KEY_F9;
  98. static const int KEY_F10;
  99. static const int KEY_F11;
  100. static const int KEY_F12;
  101. static const int KEY_F13;
  102. static const int KEY_F14;
  103. static const int KEY_F15;
  104. static const int KEY_F16;
  105. static const int KEY_F17;
  106. static const int KEY_F18;
  107. static const int KEY_F19;
  108. static const int KEY_F20;
  109. static const int KEY_F21;
  110. static const int KEY_F22;
  111. static const int KEY_F23;
  112. static const int KEY_F24;
  113. static const int KEY_NUMLOCKCLEAR;
  114. static const int KEY_SCROLLLOCK;
  115. static const int KEY_LSHIFT;
  116. static const int KEY_RSHIFT;
  117. static const int KEY_LCTRL;
  118. static const int KEY_RCTRL;
  119. static const int KEY_LALT;
  120. static const int KEY_RALT;
  121. static const int SCANCODE_UNKNOWN;
  122. static const int SCANCODE_CTRL;
  123. static const int SCANCODE_SHIFT;
  124. static const int SCANCODE_ALT;
  125. static const int SCANCODE_GUI;
  126. static const int SCANCODE_A;
  127. static const int SCANCODE_B;
  128. static const int SCANCODE_C;
  129. static const int SCANCODE_D;
  130. static const int SCANCODE_E;
  131. static const int SCANCODE_F;
  132. static const int SCANCODE_G;
  133. static const int SCANCODE_H;
  134. static const int SCANCODE_I;
  135. static const int SCANCODE_J;
  136. static const int SCANCODE_K;
  137. static const int SCANCODE_L;
  138. static const int SCANCODE_M;
  139. static const int SCANCODE_N;
  140. static const int SCANCODE_O;
  141. static const int SCANCODE_P;
  142. static const int SCANCODE_Q;
  143. static const int SCANCODE_R;
  144. static const int SCANCODE_S;
  145. static const int SCANCODE_T;
  146. static const int SCANCODE_U;
  147. static const int SCANCODE_V;
  148. static const int SCANCODE_W;
  149. static const int SCANCODE_X;
  150. static const int SCANCODE_Y;
  151. static const int SCANCODE_Z;
  152. static const int SCANCODE_1;
  153. static const int SCANCODE_2;
  154. static const int SCANCODE_3;
  155. static const int SCANCODE_4;
  156. static const int SCANCODE_5;
  157. static const int SCANCODE_6;
  158. static const int SCANCODE_7;
  159. static const int SCANCODE_8;
  160. static const int SCANCODE_9;
  161. static const int SCANCODE_0;
  162. static const int SCANCODE_RETURN;
  163. static const int SCANCODE_ESCAPE;
  164. static const int SCANCODE_BACKSPACE;
  165. static const int SCANCODE_TAB;
  166. static const int SCANCODE_SPACE;
  167. static const int SCANCODE_MINUS;
  168. static const int SCANCODE_EQUALS;
  169. static const int SCANCODE_LEFTBRACKET;
  170. static const int SCANCODE_RIGHTBRACKET;
  171. static const int SCANCODE_BACKSLASH;
  172. static const int SCANCODE_NONUSHASH;
  173. static const int SCANCODE_SEMICOLON;
  174. static const int SCANCODE_APOSTROPHE;
  175. static const int SCANCODE_GRAVE;
  176. static const int SCANCODE_COMMA;
  177. static const int SCANCODE_PERIOD;
  178. static const int SCANCODE_SLASH;
  179. static const int SCANCODE_CAPSLOCK;
  180. static const int SCANCODE_F1;
  181. static const int SCANCODE_F2;
  182. static const int SCANCODE_F3;
  183. static const int SCANCODE_F4;
  184. static const int SCANCODE_F5;
  185. static const int SCANCODE_F6;
  186. static const int SCANCODE_F7;
  187. static const int SCANCODE_F8;
  188. static const int SCANCODE_F9;
  189. static const int SCANCODE_F10;
  190. static const int SCANCODE_F11;
  191. static const int SCANCODE_F12;
  192. static const int SCANCODE_PRINTSCREEN;
  193. static const int SCANCODE_SCROLLLOCK;
  194. static const int SCANCODE_PAUSE;
  195. static const int SCANCODE_INSERT;
  196. static const int SCANCODE_HOME;
  197. static const int SCANCODE_PAGEUP;
  198. static const int SCANCODE_DELETE;
  199. static const int SCANCODE_END;
  200. static const int SCANCODE_PAGEDOWN;
  201. static const int SCANCODE_RIGHT;
  202. static const int SCANCODE_LEFT;
  203. static const int SCANCODE_DOWN;
  204. static const int SCANCODE_UP;
  205. static const int SCANCODE_NUMLOCKCLEAR;
  206. static const int SCANCODE_KP_DIVIDE;
  207. static const int SCANCODE_KP_MULTIPLY;
  208. static const int SCANCODE_KP_MINUS;
  209. static const int SCANCODE_KP_PLUS;
  210. static const int SCANCODE_KP_ENTER;
  211. static const int SCANCODE_KP_1;
  212. static const int SCANCODE_KP_2;
  213. static const int SCANCODE_KP_3;
  214. static const int SCANCODE_KP_4;
  215. static const int SCANCODE_KP_5;
  216. static const int SCANCODE_KP_6;
  217. static const int SCANCODE_KP_7;
  218. static const int SCANCODE_KP_8;
  219. static const int SCANCODE_KP_9;
  220. static const int SCANCODE_KP_0;
  221. static const int SCANCODE_KP_PERIOD;
  222. static const int SCANCODE_NONUSBACKSLASH;
  223. static const int SCANCODE_APPLICATION;
  224. static const int SCANCODE_POWER;
  225. static const int SCANCODE_KP_EQUALS;
  226. static const int SCANCODE_F13;
  227. static const int SCANCODE_F14;
  228. static const int SCANCODE_F15;
  229. static const int SCANCODE_F16;
  230. static const int SCANCODE_F17;
  231. static const int SCANCODE_F18;
  232. static const int SCANCODE_F19;
  233. static const int SCANCODE_F20;
  234. static const int SCANCODE_F21;
  235. static const int SCANCODE_F22;
  236. static const int SCANCODE_F23;
  237. static const int SCANCODE_F24;
  238. static const int SCANCODE_EXECUTE;
  239. static const int SCANCODE_HELP;
  240. static const int SCANCODE_MENU;
  241. static const int SCANCODE_SELECT;
  242. static const int SCANCODE_STOP;
  243. static const int SCANCODE_AGAIN;
  244. static const int SCANCODE_UNDO;
  245. static const int SCANCODE_CUT;
  246. static const int SCANCODE_COPY;
  247. static const int SCANCODE_PASTE;
  248. static const int SCANCODE_FIND;
  249. static const int SCANCODE_MUTE;
  250. static const int SCANCODE_VOLUMEUP;
  251. static const int SCANCODE_VOLUMEDOWN;
  252. static const int SCANCODE_KP_COMMA;
  253. static const int SCANCODE_KP_EQUALSAS400;
  254. static const int SCANCODE_INTERNATIONAL1;
  255. static const int SCANCODE_INTERNATIONAL2;
  256. static const int SCANCODE_INTERNATIONAL3;
  257. static const int SCANCODE_INTERNATIONAL4;
  258. static const int SCANCODE_INTERNATIONAL5;
  259. static const int SCANCODE_INTERNATIONAL6;
  260. static const int SCANCODE_INTERNATIONAL7;
  261. static const int SCANCODE_INTERNATIONAL8;
  262. static const int SCANCODE_INTERNATIONAL9;
  263. static const int SCANCODE_LANG1;
  264. static const int SCANCODE_LANG2;
  265. static const int SCANCODE_LANG3;
  266. static const int SCANCODE_LANG4;
  267. static const int SCANCODE_LANG5;
  268. static const int SCANCODE_LANG6;
  269. static const int SCANCODE_LANG7;
  270. static const int SCANCODE_LANG8;
  271. static const int SCANCODE_LANG9;
  272. static const int SCANCODE_ALTERASE;
  273. static const int SCANCODE_SYSREQ;
  274. static const int SCANCODE_CANCEL;
  275. static const int SCANCODE_CLEAR;
  276. static const int SCANCODE_PRIOR;
  277. static const int SCANCODE_RETURN2;
  278. static const int SCANCODE_SEPARATOR;
  279. static const int SCANCODE_OUT;
  280. static const int SCANCODE_OPER;
  281. static const int SCANCODE_CLEARAGAIN;
  282. static const int SCANCODE_CRSEL;
  283. static const int SCANCODE_EXSEL;
  284. static const int SCANCODE_KP_00;
  285. static const int SCANCODE_KP_000;
  286. static const int SCANCODE_THOUSANDSSEPARATOR;
  287. static const int SCANCODE_DECIMALSEPARATOR;
  288. static const int SCANCODE_CURRENCYUNIT;
  289. static const int SCANCODE_CURRENCYSUBUNIT;
  290. static const int SCANCODE_KP_LEFTPAREN;
  291. static const int SCANCODE_KP_RIGHTPAREN;
  292. static const int SCANCODE_KP_LEFTBRACE;
  293. static const int SCANCODE_KP_RIGHTBRACE;
  294. static const int SCANCODE_KP_TAB;
  295. static const int SCANCODE_KP_BACKSPACE;
  296. static const int SCANCODE_KP_A;
  297. static const int SCANCODE_KP_B;
  298. static const int SCANCODE_KP_C;
  299. static const int SCANCODE_KP_D;
  300. static const int SCANCODE_KP_E;
  301. static const int SCANCODE_KP_F;
  302. static const int SCANCODE_KP_XOR;
  303. static const int SCANCODE_KP_POWER;
  304. static const int SCANCODE_KP_PERCENT;
  305. static const int SCANCODE_KP_LESS;
  306. static const int SCANCODE_KP_GREATER;
  307. static const int SCANCODE_KP_AMPERSAND;
  308. static const int SCANCODE_KP_DBLAMPERSAND;
  309. static const int SCANCODE_KP_VERTICALBAR;
  310. static const int SCANCODE_KP_DBLVERTICALBAR;
  311. static const int SCANCODE_KP_COLON;
  312. static const int SCANCODE_KP_HASH;
  313. static const int SCANCODE_KP_SPACE;
  314. static const int SCANCODE_KP_AT;
  315. static const int SCANCODE_KP_EXCLAM;
  316. static const int SCANCODE_KP_MEMSTORE;
  317. static const int SCANCODE_KP_MEMRECALL;
  318. static const int SCANCODE_KP_MEMCLEAR;
  319. static const int SCANCODE_KP_MEMADD;
  320. static const int SCANCODE_KP_MEMSUBTRACT;
  321. static const int SCANCODE_KP_MEMMULTIPLY;
  322. static const int SCANCODE_KP_MEMDIVIDE;
  323. static const int SCANCODE_KP_PLUSMINUS;
  324. static const int SCANCODE_KP_CLEAR;
  325. static const int SCANCODE_KP_CLEARENTRY;
  326. static const int SCANCODE_KP_BINARY;
  327. static const int SCANCODE_KP_OCTAL;
  328. static const int SCANCODE_KP_DECIMAL;
  329. static const int SCANCODE_KP_HEXADECIMAL;
  330. static const int SCANCODE_LCTRL;
  331. static const int SCANCODE_LSHIFT;
  332. static const int SCANCODE_LALT;
  333. static const int SCANCODE_LGUI;
  334. static const int SCANCODE_RCTRL;
  335. static const int SCANCODE_RSHIFT;
  336. static const int SCANCODE_RALT;
  337. static const int SCANCODE_RGUI;
  338. static const int SCANCODE_MODE;
  339. static const int SCANCODE_AUDIONEXT;
  340. static const int SCANCODE_AUDIOPREV;
  341. static const int SCANCODE_AUDIOSTOP;
  342. static const int SCANCODE_AUDIOPLAY;
  343. static const int SCANCODE_AUDIOMUTE;
  344. static const int SCANCODE_MEDIASELECT;
  345. static const int SCANCODE_WWW;
  346. static const int SCANCODE_MAIL;
  347. static const int SCANCODE_CALCULATOR;
  348. static const int SCANCODE_COMPUTER;
  349. static const int SCANCODE_AC_SEARCH;
  350. static const int SCANCODE_AC_HOME;
  351. static const int SCANCODE_AC_BACK;
  352. static const int SCANCODE_AC_FORWARD;
  353. static const int SCANCODE_AC_STOP;
  354. static const int SCANCODE_AC_REFRESH;
  355. static const int SCANCODE_AC_BOOKMARKS;
  356. static const int SCANCODE_BRIGHTNESSDOWN;
  357. static const int SCANCODE_BRIGHTNESSUP;
  358. static const int SCANCODE_DISPLAYSWITCH;
  359. static const int SCANCODE_KBDILLUMTOGGLE;
  360. static const int SCANCODE_KBDILLUMDOWN;
  361. static const int SCANCODE_KBDILLUMUP;
  362. static const int SCANCODE_EJECT;
  363. static const int SCANCODE_SLEEP;
  364. static const int SCANCODE_APP1;
  365. static const int SCANCODE_APP2;
  366. static const int HAT_CENTER;
  367. static const int HAT_UP;
  368. static const int HAT_RIGHT;
  369. static const int HAT_DOWN;
  370. static const int HAT_LEFT;
  371. static const int CONTROLLER_BUTTON_A;
  372. static const int CONTROLLER_BUTTON_B;
  373. static const int CONTROLLER_BUTTON_X;
  374. static const int CONTROLLER_BUTTON_Y;
  375. static const int CONTROLLER_BUTTON_BACK;
  376. static const int CONTROLLER_BUTTON_GUIDE;
  377. static const int CONTROLLER_BUTTON_START;
  378. static const int CONTROLLER_BUTTON_LEFTSTICK;
  379. static const int CONTROLLER_BUTTON_RIGHTSTICK;
  380. static const int CONTROLLER_BUTTON_LEFTSHOULDER;
  381. static const int CONTROLLER_BUTTON_RIGHTSHOULDER;
  382. static const int CONTROLLER_BUTTON_DPAD_UP;
  383. static const int CONTROLLER_BUTTON_DPAD_DOWN;
  384. static const int CONTROLLER_BUTTON_DPAD_LEFT;
  385. static const int CONTROLLER_BUTTON_DPAD_RIGHT;
  386. static const int CONTROLLER_AXIS_LEFTX;
  387. static const int CONTROLLER_AXIS_LEFTY;
  388. static const int CONTROLLER_AXIS_RIGHTX;
  389. static const int CONTROLLER_AXIS_RIGHTY;
  390. static const int CONTROLLER_AXIS_TRIGGERLEFT;
  391. static const int CONTROLLER_AXIS_TRIGGERRIGHT;