diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/vgui_controls/ControllerMap.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/vgui_controls/ControllerMap.h')
| -rw-r--r-- | sp/src/public/vgui_controls/ControllerMap.h | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/sp/src/public/vgui_controls/ControllerMap.h b/sp/src/public/vgui_controls/ControllerMap.h index 62fda7e0..7ccbdc60 100644 --- a/sp/src/public/vgui_controls/ControllerMap.h +++ b/sp/src/public/vgui_controls/ControllerMap.h @@ -1,48 +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;
-};
-
+//========= 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
\ No newline at end of file |