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.

46 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Methods related to input
  4. //
  5. // $Revision: $
  6. // $NoKeywords: $
  7. //===========================================================================//
  8. #ifndef INPUT_H
  9. #define INPUT_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. struct InputEvent_t;
  14. //-----------------------------------------------------------------------------
  15. // Initializes the input system
  16. //-----------------------------------------------------------------------------
  17. void InitInput();
  18. //-----------------------------------------------------------------------------
  19. // Hooks input listening up to a window
  20. //-----------------------------------------------------------------------------
  21. void InputAttachToWindow(void *hwnd);
  22. void InputDetachFromWindow(void *hwnd);
  23. // If input isn't hooked, this forwards messages to vgui.
  24. void InputHandleWindowMessage( void *hwnd, unsigned int uMsg, unsigned int wParam, long lParam );
  25. //-----------------------------------------------------------------------------
  26. // Handles an input event, returns true if the event should be filtered
  27. // from the rest of the game
  28. //-----------------------------------------------------------------------------
  29. bool InputHandleInputEvent( const InputEvent_t &event );
  30. //-----------------------------------------------------------------------------
  31. // Enables/disables input (enabled by default)
  32. //-----------------------------------------------------------------------------
  33. void EnableInput( bool bEnable );
  34. #endif // INPUT_H