diff options
author | krogoway <devnull@localhost> | 2011-01-24 13:47:35 -0600 |
---|---|---|
committer | krogoway <devnull@localhost> | 2011-01-24 13:47:35 -0600 |
commit | b9f15fece51f954aa0cc8322bd07052b792e26c8 (patch) | |
tree | 035cba78787bc85c7ef6ccd98565d89d23fb3aac /include/SDL_keyboard.h | |
parent | adb084678dc9978bd7258b7dee4e354bfce9cc4e (diff) | |
download | sdl-b9f15fece51f954aa0cc8322bd07052b792e26c8.tar.gz |
Renamed SDL_keysym to SDL_KeySym
Renamed SDL_scancode to SDL_ScanCode
Added #defines to SDL_compat.h
Diffstat (limited to 'include/SDL_keyboard.h')
-rw-r--r-- | include/SDL_keyboard.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/SDL_keyboard.h b/include/SDL_keyboard.h index 4482ac028..7d90a7071 100644 --- a/include/SDL_keyboard.h +++ b/include/SDL_keyboard.h @@ -45,13 +45,13 @@ extern "C" { /** * \brief The SDL keysym structure, used in key events. */ -typedef struct SDL_keysym +typedef struct SDL_KeySym { - SDL_scancode scancode; /**< SDL physical key code - see ::SDL_scancode for details */ + SDL_ScanCode scancode; /**< SDL physical key code - see ::SDL_ScanCode for details */ SDLKey sym; /**< SDL virtual key code - see ::SDLKey for details */ Uint16 mod; /**< current key modifiers */ Uint32 unicode; /**< \deprecated use SDL_TextInputEvent instead */ -} SDL_keysym; +} SDL_KeySym; /* Function prototypes */ @@ -65,7 +65,7 @@ extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void); * * \param numkeys if non-NULL, receives the length of the returned array. * - * \return An array of key states. Indexes into this array are obtained by using ::SDL_scancode values. + * \return An array of key states. Indexes into this array are obtained by using ::SDL_ScanCode values. * * \b Example: * \code @@ -97,17 +97,17 @@ extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate); * * \sa SDL_GetKeyName() */ -extern DECLSPEC SDLKey SDLCALL SDL_GetKeyFromScancode(SDL_scancode scancode); +extern DECLSPEC SDLKey SDLCALL SDL_GetKeyFromScancode(SDL_ScanCode scancode); /** * \brief Get the scancode corresponding to the given key code according to the * current keyboard layout. * - * See ::SDL_scancode for details. + * See ::SDL_ScanCode for details. * * \sa SDL_GetScancodeName() */ -extern DECLSPEC SDL_scancode SDLCALL SDL_GetScancodeFromKey(SDLKey key); +extern DECLSPEC SDL_ScanCode SDLCALL SDL_GetScancodeFromKey(SDLKey key); /** * \brief Get a human-readable name for a scancode. @@ -117,9 +117,9 @@ extern DECLSPEC SDL_scancode SDLCALL SDL_GetScancodeFromKey(SDLKey key); * copy it. If the scancode doesn't have a name, this function returns * an empty string (""). * - * \sa SDL_scancode + * \sa SDL_ScanCode */ -extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_scancode +extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_ScanCode scancode); /** |