diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /vgui2/src/vgui_key_translation.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
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 |