changeset 3574:1069834f3ca8

Fixed bug #685 Added missing keysym shortcuts
author Sam Lantinga <slouken@libsdl.org>
date Wed, 16 Dec 2009 01:06:48 +0000
parents 41cd18e05965
children 239ae83fc2f6
files include/SDL_keysym.h
diffstat 1 files changed, 31 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_keysym.h	Wed Dec 16 00:55:33 2009 +0000
+++ b/include/SDL_keysym.h	Wed Dec 16 01:06:48 2009 +0000
@@ -54,7 +54,21 @@
     SDLK_BACKSPACE = '\b',
     SDLK_TAB = '\t',
     SDLK_SPACE = ' ',
-
+    SDLK_EXCLAIM = '!',
+    SDLK_QUOTEDBL = '"',
+    SDLK_HASH = '#',
+    SDLK_PERCENT = '%',
+    SDLK_DOLLAR = '$',
+    SDLK_AMPERSAND = '&',
+    SDLK_QUOTE = '\'',
+    SDLK_LEFTPAREN = '(',
+    SDLK_RIGHTPAREN = ')',
+    SDLK_ASTERISK = '*',
+    SDLK_PLUS = '+',
+    SDLK_COMMA = ',',
+    SDLK_MINUS = '-',
+    SDLK_PERIOD = '.',
+    SDLK_SLASH = '/',
     SDLK_0 = '0',
     SDLK_1 = '1',
     SDLK_2 = '2',
@@ -65,6 +79,22 @@
     SDLK_7 = '7',
     SDLK_8 = '8',
     SDLK_9 = '9',
+    SDLK_COLON = ':',
+    SDLK_SEMICOLON = ';',
+    SDLK_LESS = '<',
+    SDLK_EQUALS = '=',
+    SDLK_GREATER = '>',
+    SDLK_QUESTION = '?',
+    SDLK_AT = '@',
+    /* 
+       Skip uppercase letters
+     */
+    SDLK_LEFTBRACKET = '[',
+    SDLK_BACKSLASH = '\\',
+    SDLK_RIGHTBRACKET = ']',
+    SDLK_CARET = '^',
+    SDLK_UNDERSCORE = '_',
+    SDLK_BACKQUOTE = '`',
     SDLK_a = 'a',
     SDLK_b = 'b',
     SDLK_c = 'c',
@@ -91,25 +121,6 @@
     SDLK_x = 'x',
     SDLK_y = 'y',
     SDLK_z = 'z',
-    SDLK_QUOTE = '\'',
-    SDLK_MINUS = '-',
-    SDLK_BACKQUOTE = '`',
-    SDLK_EXCLAIM = '!',
-    SDLK_QUOTEDBL = '"',
-    SDLK_HASH = '#',
-    SDLK_DOLLAR = '$',
-    SDLK_AMPERSAND = '&',
-    SDLK_LEFTPAREN = '(',
-    SDLK_RIGHTPAREN = ')',
-    SDLK_ASTERISK = '*',
-    SDLK_PLUS = '+',
-    SDLK_COLON = ':',
-    SDLK_LESS = '<',
-    SDLK_GREATER = '>',
-    SDLK_QUESTION = '?',
-    SDLK_AT = '@',
-    SDLK_CARET = '^',
-    SDLK_UNDERSCORE = '_',
 
     SDLK_CAPSLOCK = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK),