Mercurial > sdl-ios-xcode
diff include/SDL_keyboard.h @ 337:9154ec9ca3d2
Explicitly specify the SDL API calling convention (C by default)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 Apr 2002 14:35:16 +0000 |
parents | f6ffac90895c |
children | b8d311d90021 |
line wrap: on
line diff
--- a/include/SDL_keyboard.h Wed Apr 10 17:12:32 2002 +0000 +++ b/include/SDL_keyboard.h Thu Apr 11 14:35:16 2002 +0000 @@ -74,7 +74,7 @@ * If 'enable' is -1, the translation state is not changed. * It returns the previous state of keyboard translation. */ -extern DECLSPEC int SDL_EnableUNICODE(int enable); +extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); /* * Enable/Disable keyboard repeat. Keyboard repeat defaults to off. @@ -87,7 +87,7 @@ /* * If 'delay' is set to 0, keyboard repeat is disabled. */ -extern DECLSPEC int SDL_EnableKeyRepeat(int delay, int interval); +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); /* * Get a snapshot of the current state of the keyboard. @@ -96,23 +96,23 @@ * Uint8 *keystate = SDL_GetKeyState(NULL); * if ( keystate[SDLK_RETURN] ) ... <RETURN> is pressed. */ -extern DECLSPEC Uint8 * SDL_GetKeyState(int *numkeys); +extern DECLSPEC Uint8 * SDLCALL SDL_GetKeyState(int *numkeys); /* * Get the current key modifier state */ -extern DECLSPEC SDLMod SDL_GetModState(void); +extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void); /* * Set the current key modifier state * This does not change the keyboard state, only the key modifier flags. */ -extern DECLSPEC void SDL_SetModState(SDLMod modstate); +extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate); /* * Get the name of an SDL virtual keysym */ -extern DECLSPEC char * SDL_GetKeyName(SDLKey key); +extern DECLSPEC char * SDLCALL SDL_GetKeyName(SDLKey key); /* Ends C function definitions when using C++ */