aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/con_kmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parsec/include/con_kmap.h')
-rw-r--r--src/parsec/include/con_kmap.h49
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_
+
+