OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
keys.h
1/*
2===========================================================================
3Copyright (C) 1999-2005 Id Software, Inc.
4
5This file is part of Quake III Arena source code.
6
7Quake III Arena source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12Quake III Arena source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with Quake III Arena source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22#include "keycodes.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28typedef struct {
29 qboolean down;
30 int repeats; // if > 1, it is autorepeating
31 char *binding;
32} qkey_t;
33
34extern qboolean key_overstrikeMode;
35extern qkey_t keys[MAX_KEYS];
36
37extern int anykeydown;
38extern qboolean chat_team;
39extern int chat_playerNum;
40
41#if defined(APP_MODULE)
42
43int Key_StringToKeynum( const char *str );
44void Key_WriteBindings( fileHandle_t f );
45void Key_SetBinding( int keynum, const char *binding );
46const char *Key_GetBinding( int keynum );
47qboolean Key_IsDown( int keynum );
48qboolean Key_GetOverstrikeMode( void );
49void Key_SetOverstrikeMode( qboolean state );
50void Key_ClearStates( void );
51int Key_GetKey(const char *binding);
52const char* Key_GetKeynameForCommand(const char* command);
53
54#endif
55
56#ifdef __cplusplus
57}
58#endif
Definition str.h:77
Definition keys.h:28
Definition puff.c:88