aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/con_kmap.h
blob: e4de560579786f9a44f7d29a99becd7160fdeff1 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * PARSEC HEADER: con_kmap.h
 */

#ifndef _CON_KMAP_H_
#define _CON_KMAP_H_


// command mapped to key ------------------------------------------------------
//
struct keycom_s {

	char*	command;	// console command string
	int		echo;		// echo flag (display, add to history)
};


// textual description of key code --------------------------------------------
//
struct textkeymap_s {

	dword		code;		// key code
	const char*	text;	// name of corresponding key
};


// external variables

extern keycom_s				key_com_mappings[];
extern textkeymap_s			make_codes[];
extern textkeymap_s			key_com_names[];
extern const char *const	functional_keys[];


// external functions

char *	GetAKCDescription( int num );
char *	GetMKCDescription( int num );
char *	GetGameFuncDescription( int num );

int		CheckKeyMappingEcho( char *scan );
int		CheckKeyMappingSilent( char *scan );

void	ExecBoundKeyCommands();


#endif // _CON_KMAP_H_