CONTROLS.H 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef __CONTROLS_H
  2. #define __CONTROLS_H
  3. #include "typedefs.h"
  4. #include "player.h"
  5. enum {
  6. kForward1 = 0,
  7. kForward2,
  8. kBackward1,
  9. kBackward2,
  10. kLeft1,
  11. kLeft2,
  12. kRight1,
  13. kRight2,
  14. kJump1,
  15. kJump2,
  16. kCrouch1,
  17. kCrouch2,
  18. kStrafeOn1,
  19. kStrafeOn2,
  20. kStrafeLeft1,
  21. kStrafeLeft2,
  22. kStrafeRight1,
  23. kStrafeRight2,
  24. kLookUp1,
  25. kLookUp2,
  26. kLookDown1,
  27. kLookDown2,
  28. kAimUp1,
  29. kAimUp2,
  30. kAimDown1,
  31. kAimDown2,
  32. kLookCenter1,
  33. kLookCenter2,
  34. kAction1,
  35. kAction2,
  36. kFire1,
  37. kFire2,
  38. kAltFire1,
  39. kAltFire2,
  40. kRunOn1,
  41. kRunOn2,
  42. kRunToggle1,
  43. kRunToggle2,
  44. kSelectWeapon1,
  45. kSelectWeapon2,
  46. kSelectWeapon3,
  47. kSelectWeapon4,
  48. kSelectWeapon5,
  49. kSelectWeapon6,
  50. kSelectWeapon7,
  51. kSelectWeapon8,
  52. kSelectWeapon9,
  53. kSelectWeapon0,
  54. kAutomapToggle,
  55. kItemLeft1,
  56. kItemLeft2,
  57. kItemRight1,
  58. kItemRight2,
  59. kItemDrop1,
  60. kItemDrop2,
  61. kItemUse1,
  62. kItemUse2,
  63. kPause,
  64. kMaxControls
  65. };
  66. extern INPUT gInput;
  67. extern volatile BYTE *control[ kMaxControls ];
  68. void ctrlStrobeKey( void );
  69. void ctrlGetInput( void );
  70. void ctrlInit( void );
  71. void ctrlTerm( void );
  72. #endif //__CONTROLS_H