summaryrefslogtreecommitdiff
path: root/engine/keys.h
blob: 2cc50b5e0f569cbb79483d3d21916555ef93f321 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//===========================================================================//
	   
#ifndef KEYS_H
#define KEYS_H

#ifdef _WIN32
#pragma once
#endif

#include "inputsystem/ButtonCode.h"

class CUtlBuffer;
struct InputEvent_t;


void		Key_Event( const InputEvent_t &event );

void		Key_Init( void );
void		Key_Shutdown( void );
void		Key_WriteBindings( CUtlBuffer &buf );
int			Key_CountBindings( void );
void		Key_SetBinding( ButtonCode_t code, const char *pBinding );
const char	*Key_BindingForKey( ButtonCode_t code );
const char	*Key_NameForBinding( const char *pBinding );
const char	*Key_NameForBindingExact( const char *pBinding );

void		Key_StartTrapMode( void );
bool		Key_CheckDoneTrapping( ButtonCode_t& key );


#endif // KEYS_H