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.

38 lines
1.1 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #ifndef KEYS_H
  9. #define KEYS_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "inputsystem/ButtonCode.h"
  14. #include "cdll_int.h"
  15. class CUtlBuffer;
  16. struct InputEvent_t;
  17. void Key_Event( const InputEvent_t &event );
  18. void Key_Init( void );
  19. void Key_Shutdown( void );
  20. void Key_WriteBindings( CUtlBuffer &buf, const int iSplitscreenSlot = -1 );
  21. int Key_CountBindings( void );
  22. void Key_SetBinding( ButtonCode_t code, const char *pBinding );
  23. const char *Key_BindingForKey( ButtonCode_t code );
  24. const char *Key_NameForBinding( const char *pBinding , int userId = -1, int iStartCount = 0, BindingLookupOption_t nFlags = BINDINGLOOKUP_ALL );
  25. int Key_CodeForBinding( const char *pBinding , int userId = -1, int iStartCount = 0, BindingLookupOption_t nFlags = BINDINGLOOKUP_ALL );
  26. void Key_StartTrapMode( void );
  27. bool Key_CheckDoneTrapping( ButtonCode_t& key );
  28. #endif // KEYS_H