Putting the simple back into Simple DirectMedia Layer
This commit is contained in:
@@ -365,9 +365,9 @@ SDL_DYNAPI_PROC(SDL_JoystickType,SDL_GetJoystickTypeForID,(SDL_JoystickID a),(a)
|
||||
SDL_DYNAPI_PROC(Uint16,SDL_GetJoystickVendor,(SDL_Joystick *a),(a),return)
|
||||
SDL_DYNAPI_PROC(Uint16,SDL_GetJoystickVendorForID,(SDL_JoystickID a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_JoystickID*,SDL_GetJoysticks,(int *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Keycode,SDL_GetKeyFromName,(const char *a, SDL_bool b),(a, b),return)
|
||||
SDL_DYNAPI_PROC(SDL_Keycode,SDL_GetKeyFromName,(const char *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Keycode,SDL_GetKeyFromScancode,(SDL_Scancode a, SDL_Keymod b, SDL_bool c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetKeyName,(SDL_Keycode a, SDL_bool b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetKeyName,(SDL_Keycode a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_Window*,SDL_GetKeyboardFocus,(void),(),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetKeyboardNameForID,(SDL_KeyboardID a),(a),return)
|
||||
SDL_DYNAPI_PROC(const Uint8*,SDL_GetKeyboardState,(int *a),(a),return)
|
||||
|
||||
@@ -981,8 +981,9 @@ SDL_Scancode SDL_GetScancodeFromName(const char *name)
|
||||
return SDL_SCANCODE_UNKNOWN;
|
||||
}
|
||||
|
||||
const char *SDL_GetKeyName(SDL_Keycode key, SDL_bool uppercase)
|
||||
const char *SDL_GetKeyName(SDL_Keycode key)
|
||||
{
|
||||
const SDL_bool uppercase = SDL_TRUE;
|
||||
char name[8];
|
||||
char *end;
|
||||
|
||||
@@ -1027,8 +1028,9 @@ const char *SDL_GetKeyName(SDL_Keycode key, SDL_bool uppercase)
|
||||
}
|
||||
}
|
||||
|
||||
SDL_Keycode SDL_GetKeyFromName(const char *name, SDL_bool uppercase)
|
||||
SDL_Keycode SDL_GetKeyFromName(const char *name)
|
||||
{
|
||||
const SDL_bool uppercase = SDL_TRUE;
|
||||
SDL_Keycode key;
|
||||
|
||||
/* Check input */
|
||||
|
||||
@@ -1717,7 +1717,7 @@ void SDLTest_PrintEvent(const SDL_Event *event)
|
||||
event->key.windowID,
|
||||
event->key.scancode,
|
||||
SDL_GetScancodeName(event->key.scancode),
|
||||
event->key.key, SDL_GetKeyName(event->key.key, SDL_TRUE),
|
||||
event->key.key, SDL_GetKeyName(event->key.key),
|
||||
modstr);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user