src/events/SDL_keyboard.c
changeset 6044 35448a5ea044
parent 6029 4a8bbaa52b9b
child 6138 4c64952a58fb
     1.1 --- a/src/events/SDL_keyboard.c	Mon Oct 31 03:06:32 2011 -0400
     1.2 +++ b/src/events/SDL_keyboard.c	Mon Oct 31 05:56:58 2011 -0400
     1.3 @@ -854,23 +854,6 @@
     1.4      return keyboard->keymap[scancode];
     1.5  }
     1.6  
     1.7 -SDL_Keycode SDL_GetKeycodeFromName(const char *name)
     1.8 -{
     1.9 -	int i;
    1.10 -
    1.11 -	if (!name || !*name) {
    1.12 -		return SDL_SCANCODE_UNKNOWN;
    1.13 -	}
    1.14 -
    1.15 -	for (i = 0; i < SDL_arraysize(SDL_scancode_names); ++i) {
    1.16 -		if (SDL_strcasecmp(name, SDL_scancode_names[i]) == 0) {
    1.17 -			return (SDL_Scancode)i;
    1.18 -		}
    1.19 -	}
    1.20 -	return SDL_SCANCODE_UNKNOWN;
    1.21 -}
    1.22 -
    1.23 -
    1.24  SDL_Scancode
    1.25  SDL_GetScancodeFromKey(SDL_Keycode key)
    1.26  {