keys.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Luanti
  2. // SPDX-License-Identifier: LGPL-2.1-or-later
  3. // Copyright (C) 2016 est31, <MTest31@outlook.com>
  4. #pragma once
  5. #include <list>
  6. class KeyType
  7. {
  8. public:
  9. enum T
  10. {
  11. // Player movement
  12. FORWARD,
  13. BACKWARD,
  14. LEFT,
  15. RIGHT,
  16. JUMP,
  17. AUX1,
  18. SNEAK,
  19. AUTOFORWARD,
  20. DIG,
  21. PLACE,
  22. ESC,
  23. // Other
  24. DROP,
  25. INVENTORY,
  26. CHAT,
  27. CMD,
  28. CMD_LOCAL,
  29. CONSOLE,
  30. MINIMAP,
  31. FREEMOVE,
  32. PITCHMOVE,
  33. FASTMOVE,
  34. NOCLIP,
  35. HOTBAR_PREV,
  36. HOTBAR_NEXT,
  37. MUTE,
  38. INC_VOLUME,
  39. DEC_VOLUME,
  40. CINEMATIC,
  41. SCREENSHOT,
  42. TOGGLE_BLOCK_BOUNDS,
  43. TOGGLE_HUD,
  44. TOGGLE_CHAT,
  45. TOGGLE_FOG,
  46. TOGGLE_UPDATE_CAMERA,
  47. TOGGLE_DEBUG,
  48. TOGGLE_PROFILER,
  49. CAMERA_MODE,
  50. INCREASE_VIEWING_RANGE,
  51. DECREASE_VIEWING_RANGE,
  52. RANGESELECT,
  53. ZOOM,
  54. QUICKTUNE_NEXT,
  55. QUICKTUNE_PREV,
  56. QUICKTUNE_INC,
  57. QUICKTUNE_DEC,
  58. // hotbar
  59. SLOT_1,
  60. SLOT_2,
  61. SLOT_3,
  62. SLOT_4,
  63. SLOT_5,
  64. SLOT_6,
  65. SLOT_7,
  66. SLOT_8,
  67. SLOT_9,
  68. SLOT_10,
  69. SLOT_11,
  70. SLOT_12,
  71. SLOT_13,
  72. SLOT_14,
  73. SLOT_15,
  74. SLOT_16,
  75. SLOT_17,
  76. SLOT_18,
  77. SLOT_19,
  78. SLOT_20,
  79. SLOT_21,
  80. SLOT_22,
  81. SLOT_23,
  82. SLOT_24,
  83. SLOT_25,
  84. SLOT_26,
  85. SLOT_27,
  86. SLOT_28,
  87. SLOT_29,
  88. SLOT_30,
  89. SLOT_31,
  90. SLOT_32,
  91. // Fake keycode for array size and internal checks
  92. INTERNAL_ENUM_COUNT
  93. };
  94. };
  95. typedef KeyType::T GameKeyType;