--- a/src/gfx.h Tue Jul 31 23:31:45 2007 +0000
+++ b/src/gfx.h Fri Aug 03 18:10:15 2007 +0000
@@ -71,7 +71,7 @@
WKC_F11 = 43,
WKC_F12 = 44,
- /* backquote is the key left of "1"
+ /* Backquote is the key left of "1"
* we only store this key here, no matter what character is really mapped to it
* on a particular keyboard. (US keyboard: ` and ~ ; German keyboard: ^ and °) */
WKC_BACKQUOTE = 45,
@@ -80,6 +80,21 @@
/* 0-9 are mapped to 48-57
* A-Z are mapped to 65-90
* a-z are mapped to 97-122 */
+
+ /* Other keys, corresponding to their ascii values */
+ WKC_SLASH = 47, ///< / Forward slash
+ WKC_SEMICOLON = 59, ///< ; Semicolon
+ WKC_EQUALS = 61, ///< = Equals
+ WKC_L_BRACKET = 91, ///< [ Left square bracket
+ WKC_BACKSLASH = 92, ///< \ Backslash
+ WKC_R_BRACKET = 93, ///< ] Right square bracket
+
+ /* Other keys of which their ascii value is already taken
+ * - use unused ascii value not present on keyboard directly */
+ WKC_SINGLEQUOTE = 58, ///< ' Single quote
+ WKC_COMMA = 60, ///< , Comma
+ WKC_PERIOD = 62, ///< . Period
+ WKC_MINUS = 95, ///< - Minus
};
enum GameModes {
@@ -95,7 +110,7 @@
typedef int32 CursorID;
struct Point {
- int x,y;
+ int x, y;
};
struct Rect {