src/events/SDL_keyboard.c
changeset 6803 fbe83a6d10fa
parent 6665 c0ea8c57034c
child 6811 60d95fcfaf3c
     1.1 --- a/src/events/SDL_keyboard.c	Sun Jan 06 18:19:30 2013 -0800
     1.2 +++ b/src/events/SDL_keyboard.c	Mon Jan 07 07:39:15 2013 -0800
     1.3 @@ -953,6 +953,9 @@
     1.4  {
     1.5  	SDL_Keycode key;
     1.6  
     1.7 +        /* Check input */
     1.8 +        if (name == NULL) return SDLK_UNKNOWN;
     1.9 +        
    1.10  	/* If it's a single UTF-8 character, then that's the keycode itself */
    1.11  	key = *(const unsigned char *)name;
    1.12  	if (key >= 0xF0) {