Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
 
 
 
 
 
 

39 lines
1003 B

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Control for displaying a Steam Controller hint icon
//
// $NoKeywords: $
//=============================================================================//
#ifndef SC_HINTICON_H
#define SC_HINTICON_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/IScheme.h>
#include <vgui/KeyCode.h>
#include <KeyValues.h>
#include <vgui/IVGui.h>
#include <vgui_controls/Label.h>
class CSCHintIcon : public vgui::Label
{
public:
DECLARE_CLASS_SIMPLE( CSCHintIcon, vgui::Label );
CSCHintIcon( vgui::Panel *parent, const char *panelName );
virtual void ApplySettings( KeyValues *inResourceData );
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
bool IsActionMapped() const { return m_bIsActionMapped; }
private:
bool m_bIsActionMapped;
static const int nMaxActionNameLength = 63;
char m_szActionName[nMaxActionNameLength+1];
ControllerActionSetHandle_t m_actionSetHandle;
};
#endif // SC_HINTICON_H