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 /vguimatsurface/Input.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'vguimatsurface/Input.h')
| -rw-r--r-- | vguimatsurface/Input.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/vguimatsurface/Input.h b/vguimatsurface/Input.h new file mode 100644 index 0000000..0f45cae --- /dev/null +++ b/vguimatsurface/Input.h @@ -0,0 +1,47 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Methods related to input +// +// $Revision: $ +// $NoKeywords: $ +//===========================================================================// + +#ifndef INPUT_H +#define INPUT_H + +#ifdef _WIN32 +#pragma once +#endif + +struct InputEvent_t; + + +//----------------------------------------------------------------------------- +// Initializes the input system +//----------------------------------------------------------------------------- +void InitInput(); + + +//----------------------------------------------------------------------------- +// Hooks input listening up to a window +//----------------------------------------------------------------------------- +void InputAttachToWindow(void *hwnd); +void InputDetachFromWindow(void *hwnd); + +// If input isn't hooked, this forwards messages to vgui. +void InputHandleWindowMessage( void *hwnd, unsigned int uMsg, unsigned int wParam, long lParam ); + +//----------------------------------------------------------------------------- +// Handles an input event, returns true if the event should be filtered +// from the rest of the game +//----------------------------------------------------------------------------- +bool InputHandleInputEvent( const InputEvent_t &event ); + + +//----------------------------------------------------------------------------- +// Enables/disables input (enabled by default) +//----------------------------------------------------------------------------- +void EnableInput( bool bEnable ); + + +#endif // INPUT_H
\ No newline at end of file |