1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

First version of the SOurce SDK 2013

This commit is contained in:
Joe Ludwig
2013-06-26 15:22:04 -07:00
commit e7d6f4c174
3682 changed files with 1624327 additions and 0 deletions

View File

@ -0,0 +1,48 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CONTROLLERMAP_H
#define CONTROLLERMAP_H
#ifdef _WIN32
#pragma once
#endif
#include "Panel.h"
#include "utlmap.h"
#include "utlsymbol.h"
class CControllerMap : public vgui::Panel
{
DECLARE_CLASS_SIMPLE( CControllerMap, vgui::Panel )
virtual void OnKeyCodeTyped( vgui::KeyCode code );
public:
CControllerMap( vgui::Panel *parent, const char *name );
virtual void ApplySettings( KeyValues *inResourceData );
int NumButtons( void )
{
return m_buttonMap.Count();
}
const char *GetBindingText( int idx );
const char *GetBindingIcon( int idx );
private:
struct button_t
{
CUtlSymbol cmd;
CUtlSymbol text;
CUtlSymbol icon;
};
CUtlMap< int, button_t > m_buttonMap;
};
#endif // CONTROLLERMAP_H