Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

global.h 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*!
  2. * \file include/global.h
  3. * \brief Global typedefs
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _GLOBAL_H_
  8. #define _GLOBAL_H_
  9. typedef enum {
  10. menuAction = 0,
  11. consoleAction, // menu and console should always be the first two items
  12. forwardAction,
  13. backwardAction,
  14. leftAction,
  15. rightAction,
  16. jumpAction,
  17. crouchAction,
  18. useAction,
  19. holsterAction,
  20. ActionEventCount // Should always be at the end
  21. } ActionEvents;
  22. typedef enum {
  23. zero = '0', one = '1',
  24. two = '2', three = '3',
  25. four = '4', five = '5',
  26. six = '6', seven = '7',
  27. eight = '8', nine = '9',
  28. a = 'a', b = 'b',
  29. c = 'c', d = 'd',
  30. e = 'e', f = 'f',
  31. g = 'g', h = 'h',
  32. i = 'i', j = 'j',
  33. k = 'k', l = 'l',
  34. m = 'm', n = 'n',
  35. o = 'o', p = 'p',
  36. q = 'q', r = 'r',
  37. s = 's', t = 't',
  38. u = 'u', v = 'v',
  39. w = 'w', x = 'x',
  40. y = 'y', z = 'z',
  41. quote, backslash, backspace, capslock,
  42. comma, del, up, down, left, right,
  43. end, equals, escape, f1, f2, f3, f4, f5,
  44. f6, f7, f8, f9, f10, f11, f12, backquote,
  45. home, insert, leftalt, leftctrl, leftbracket,
  46. leftgui, leftshift, minus, numlock, pagedown,
  47. pageup, pause, dot, rightalt, rightctrl, enter,
  48. rightgui, rightbracket, rightshift, scrolllock,
  49. semicolon, slash, space, tab,
  50. leftmouse, middlemouse, rightmouse,
  51. unknown
  52. } KeyboardButton;
  53. typedef struct {
  54. char *text;
  55. unsigned int x;
  56. unsigned int y;
  57. int w;
  58. int h;
  59. float scale;
  60. unsigned char color[4];
  61. } WindowString;
  62. #endif