From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/parsec/include/con_kmap.h | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/parsec/include/con_kmap.h (limited to 'src/parsec/include/con_kmap.h') diff --git a/src/parsec/include/con_kmap.h b/src/parsec/include/con_kmap.h new file mode 100644 index 0000000..e4de560 --- /dev/null +++ b/src/parsec/include/con_kmap.h @@ -0,0 +1,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_ + + -- cgit v1.2.3