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.

36 lines
939 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // The keyboard input class
  4. //
  5. //=============================================================================
  6. #ifndef DMEKEYBOARDINPUT_H
  7. #define DMEKEYBOARDINPUT_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "movieobjects/dmeinput.h"
  12. //-----------------------------------------------------------------------------
  13. // A class representing a camera
  14. //-----------------------------------------------------------------------------
  15. class CDmeKeyboardInput : public CDmeInput
  16. {
  17. DEFINE_ELEMENT( CDmeKeyboardInput, CDmeInput );
  18. public:
  19. virtual bool IsDirty(); // ie needs to operate
  20. virtual void Operate();
  21. virtual void GetInputAttributes ( CUtlVector< CDmAttribute * > &attrs );
  22. virtual void GetOutputAttributes( CUtlVector< CDmAttribute * > &attrs );
  23. protected:
  24. CDmaVar< bool > *m_keys;
  25. bool GetKeyStatus( uint ki );
  26. };
  27. #endif // DMEKEYBOARDINPUT_H