diff options
Diffstat (limited to 'vgui2/src/vgui_key_translation.h')
| -rw-r--r-- | vgui2/src/vgui_key_translation.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vgui2/src/vgui_key_translation.h b/vgui2/src/vgui_key_translation.h new file mode 100644 index 0000000..3d08435 --- /dev/null +++ b/vgui2/src/vgui_key_translation.h @@ -0,0 +1,20 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//===========================================================================// + +#ifndef VGUI_KEY_TRANSLATION_H +#define VGUI_KEY_TRANSLATION_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui/KeyCode.h> + +// Convert from Windows scan codes to VGUI key codes. +vgui::KeyCode KeyCode_VirtualKeyToVGUI( int key ); +int KeyCode_VGUIToVirtualKey( vgui::KeyCode keycode ); + + +#endif // VGUI_KEY_TRANSLATION_H |