Mercurial > sdl-ios-xcode
diff include/SDL_keyboard.h @ 5224:c1a92e61907d
Renamed SDLKey and SDLMod for consistency
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Feb 2011 09:42:08 -0800 |
parents | 572a73d71b5f |
children | 1fbe1c202501 |
line wrap: on
line diff
--- a/include/SDL_keyboard.h Mon Feb 07 09:37:11 2011 -0800 +++ b/include/SDL_keyboard.h Mon Feb 07 09:42:08 2011 -0800 @@ -48,7 +48,7 @@ typedef struct SDL_Keysym { SDL_Scancode scancode; /**< SDL physical key code - see ::SDL_Scancode for details */ - SDLKey sym; /**< SDL virtual key code - see ::SDLKey for details */ + SDL_Key sym; /**< SDL virtual key code - see ::SDL_Key for details */ Uint16 mod; /**< current key modifiers */ Uint32 unicode; /**< \deprecated use SDL_TextInputEvent instead */ } SDL_Keysym; @@ -80,24 +80,24 @@ /** * \brief Get the current key modifier state for the keyboard. */ -extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void); +extern DECLSPEC SDL_Mod SDLCALL SDL_GetModState(void); /** * \brief Set the current key modifier state for the keyboard. * * \note This does not change the keyboard state, only the key modifier flags. */ -extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate); +extern DECLSPEC void SDLCALL SDL_SetModState(SDL_Mod modstate); /** * \brief Get the key code corresponding to the given scancode according * to the current keyboard layout. * - * See ::SDLKey for details. + * See ::SDL_Key for details. * * \sa SDL_GetKeyName() */ -extern DECLSPEC SDLKey SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode); +extern DECLSPEC SDL_Key SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode); /** * \brief Get the scancode corresponding to the given key code according to the @@ -107,7 +107,7 @@ * * \sa SDL_GetScancodeName() */ -extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDLKey key); +extern DECLSPEC SDL_Scancode SDLCALL SDL_GetScancodeFromKey(SDL_Key key); /** * \brief Get a human-readable name for a scancode. @@ -130,9 +130,9 @@ * copy it. If the key doesn't have a name, this function returns an * empty string (""). * - * \sa SDLKey + * \sa SDL_Key */ -extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDLKey key); +extern DECLSPEC const char *SDLCALL SDL_GetKeyName(SDL_Key key); /** * \brief Start accepting Unicode text input events.