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.

38 lines
1003 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Control for displaying a Steam Controller hint icon
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SC_HINTICON_H
  8. #define SC_HINTICON_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui/IScheme.h>
  13. #include <vgui/KeyCode.h>
  14. #include <KeyValues.h>
  15. #include <vgui/IVGui.h>
  16. #include <vgui_controls/Label.h>
  17. class CSCHintIcon : public vgui::Label
  18. {
  19. public:
  20. DECLARE_CLASS_SIMPLE( CSCHintIcon, vgui::Label );
  21. CSCHintIcon( vgui::Panel *parent, const char *panelName );
  22. virtual void ApplySettings( KeyValues *inResourceData );
  23. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  24. bool IsActionMapped() const { return m_bIsActionMapped; }
  25. private:
  26. bool m_bIsActionMapped;
  27. static const int nMaxActionNameLength = 63;
  28. char m_szActionName[nMaxActionNameLength+1];
  29. ControllerActionSetHandle_t m_actionSetHandle;
  30. };
  31. #endif // SC_HINTICON_H