keys.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. Minetest
  3. Copyright (C) 2016 est31, <MTest31@outlook.com>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU Lesser General Public License as published by
  6. the Free Software Foundation; either version 2.1 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. #ifndef KEYS_HEADER
  17. #define KEYS_HEADER
  18. #include<list>
  19. class KeyType {
  20. public:
  21. enum T {
  22. // Player movement
  23. FORWARD,
  24. BACKWARD,
  25. LEFT,
  26. RIGHT,
  27. JUMP,
  28. SPECIAL1,
  29. SNEAK,
  30. AUTORUN,
  31. ESC,
  32. // Other
  33. DROP,
  34. INVENTORY,
  35. CHAT,
  36. CMD,
  37. CONSOLE,
  38. MINIMAP,
  39. FREEMOVE,
  40. FASTMOVE,
  41. NOCLIP,
  42. CINEMATIC,
  43. SCREENSHOT,
  44. TOGGLE_HUD,
  45. TOGGLE_CHAT,
  46. TOGGLE_FORCE_FOG_OFF,
  47. TOGGLE_UPDATE_CAMERA,
  48. TOGGLE_DEBUG,
  49. TOGGLE_PROFILER,
  50. CAMERA_MODE,
  51. INCREASE_VIEWING_RANGE,
  52. DECREASE_VIEWING_RANGE,
  53. RANGESELECT,
  54. QUICKTUNE_NEXT,
  55. QUICKTUNE_PREV,
  56. QUICKTUNE_INC,
  57. QUICKTUNE_DEC,
  58. DEBUG_STACKS,
  59. // joystick specific keys
  60. MOUSE_L,
  61. MOUSE_R,
  62. SCROLL_UP,
  63. SCROLL_DOWN,
  64. // Fake keycode for array size and internal checks
  65. INTERNAL_ENUM_COUNT
  66. };
  67. };
  68. typedef KeyType::T GameKeyType;
  69. #endif