diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec/include/con_kmap.h | |
| download | openparsec-main.tar.xz openparsec-main.zip | |
Diffstat (limited to 'src/parsec/include/con_kmap.h')
| -rw-r--r-- | src/parsec/include/con_kmap.h | 49 |
1 files changed, 49 insertions, 0 deletions
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_ + + |
