Counter Strike : Global Offensive Source Code
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.

64 lines
1.9 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef IN_BUTTONS_H
  9. #define IN_BUTTONS_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #define IN_ATTACK (1 << 0)
  14. #define IN_JUMP (1 << 1)
  15. #define IN_DUCK (1 << 2)
  16. #define IN_FORWARD (1 << 3)
  17. #define IN_BACK (1 << 4)
  18. #define IN_USE (1 << 5)
  19. #define IN_CANCEL (1 << 6)
  20. #define IN_LEFT (1 << 7)
  21. #define IN_RIGHT (1 << 8)
  22. #define IN_MOVELEFT (1 << 9)
  23. #define IN_MOVERIGHT (1 << 10)
  24. #define IN_ATTACK2 (1 << 11)
  25. #define IN_RUN (1 << 12)
  26. #define IN_RELOAD (1 << 13)
  27. #define IN_ALT1 (1 << 14)
  28. #define IN_ALT2 (1 << 15)
  29. #define IN_SCORE (1 << 16) // Used by client.dll for when scoreboard is held down
  30. #define IN_SPEED (1 << 17) // Player is holding the speed key
  31. #define IN_WALK (1 << 18) // Player holding walk key
  32. #define IN_ZOOM (1 << 19) // Zoom key for HUD zoom
  33. #define IN_WEAPON1 (1 << 20) // weapon defines these bits
  34. #define IN_WEAPON2 (1 << 21) // weapon defines these bits
  35. #define IN_BULLRUSH (1 << 22)
  36. #define IN_GRENADE1 (1 << 23) // grenade 1
  37. #define IN_GRENADE2 (1 << 24) // grenade 2
  38. #define IN_LOOKSPIN (1 << 25)
  39. #ifdef PORTAL2
  40. #if USE_SLOWTIME
  41. #define IN_SLOWTIME (1 << 26)
  42. #endif // USE_SLOWTIME
  43. #define IN_COOP_PING (1 << 27)
  44. #define IN_REMOTE_VIEW (1 << 28)
  45. #endif // PORTAL2
  46. #ifdef INFESTED_DLL
  47. #define IN_CURRENT_ABILITY (1 << 22) // overloading BULLRUSH
  48. #define IN_PREV_ABILITY (1 << 23) // overloading GRENADE1
  49. #define IN_NEXT_ABILITY (1 << 24) // overloading GRENADE2
  50. #define IN_MELEE_LOCK (1 << 26)
  51. #define IN_MELEE_CONTACT (1 << 27)
  52. #define IN_ABILITY1 (1 << 28)
  53. #define IN_ABILITY2 (1 << 29)
  54. #define IN_ABILITY3 (1 << 30)
  55. #define IN_ABILITY4 (1 << 31)
  56. #define IN_ABILITY5 (1 << 19) // overloading ZOOM
  57. #endif // INFESTED_DLL
  58. #endif // IN_BUTTONS_H