# HG changeset patch # User Sam Lantinga # Date 1260925608 0 # Node ID 1069834f3ca8162d4d428074293bf0fff3fd8354 # Parent 41cd18e059654dfcf61fe6919fdd4d8f62b3ec53 Fixed bug #685 Added missing keysym shortcuts diff -r 41cd18e05965 -r 1069834f3ca8 include/SDL_keysym.h --- 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),