summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.h
diff options
context:
space:
mode:
authorSimon Howard2011-04-11 19:49:45 +0000
committerSimon Howard2011-04-11 19:49:45 +0000
commiteb86fcdf3099404ed8cc0feaf96dd94654d2b8dd (patch)
tree26acfbe82ee8ce3281e8f254467e6f66af095159 /textscreen/txt_main.h
parentd4ef7c37721ee261ac23305fd52239a91e58250a (diff)
downloadchocolate-doom-eb86fcdf3099404ed8cc0feaf96dd94654d2b8dd.tar.gz
chocolate-doom-eb86fcdf3099404ed8cc0feaf96dd94654d2b8dd.tar.bz2
chocolate-doom-eb86fcdf3099404ed8cc0feaf96dd94654d2b8dd.zip
Allow the shift key to be held down when changing key/mouse/joystick
bindings to prevent bindings to the same key from being cleared (thanks myk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2325
Diffstat (limited to 'textscreen/txt_main.h')
-rw-r--r--textscreen/txt_main.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h
index 601548e5..a415ee1b 100644
--- a/textscreen/txt_main.h
+++ b/textscreen/txt_main.h
@@ -69,6 +69,16 @@ typedef enum
TXT_COLOR_BRIGHT_WHITE,
} txt_color_t;
+// Modifier keys.
+
+typedef enum
+{
+ TXT_MOD_SHIFT,
+ TXT_MOD_CTRL,
+ TXT_MOD_ALT,
+ TXT_NUM_MODIFIERS
+} txt_modifier_t;
+
// Initialize the screen
// Returns 1 if successful, 0 if failed.
@@ -94,6 +104,10 @@ void TXT_UpdateScreen(void);
int TXT_GetChar(void);
+// Read the current state of modifier keys that are held down.
+
+int TXT_GetModifierState(txt_modifier_t mod);
+
// Provides a short description of a key code, placing into the
// provided buffer.