Team Fortress 2 Source Code as on 22/4/2020
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.

37 lines
859 B

  1. //========= Copyright 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. class CUtlBuffer;
  15. struct InputEvent_t;
  16. void Key_Event( const InputEvent_t &event );
  17. void Key_Init( void );
  18. void Key_Shutdown( void );
  19. void Key_WriteBindings( CUtlBuffer &buf );
  20. int Key_CountBindings( void );
  21. void Key_SetBinding( ButtonCode_t code, const char *pBinding );
  22. const char *Key_BindingForKey( ButtonCode_t code );
  23. const char *Key_NameForBinding( const char *pBinding );
  24. const char *Key_NameForBindingExact( const char *pBinding );
  25. void Key_StartTrapMode( void );
  26. bool Key_CheckDoneTrapping( ButtonCode_t& key );
  27. #endif // KEYS_H