diff options
author | Sam Lantinga <slouken@libsdl.org> | 2002-04-11 14:35:16 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2002-04-11 14:35:16 +0000 |
commit | 5fd81cee37f6ecf48dd99a828ddc22c57ffa106a (patch) | |
tree | 274c9b4301d677e3839f0f856674273f986c4c4f /include/SDL_keyboard.h | |
parent | a17946bf3ee8b42d6399c17a509648ca4d3b85d0 (diff) | |
download | sdl-5fd81cee37f6ecf48dd99a828ddc22c57ffa106a.tar.gz |
Explicitly specify the SDL API calling convention (C by default)
Diffstat (limited to 'include/SDL_keyboard.h')
-rw-r--r-- | include/SDL_keyboard.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/SDL_keyboard.h b/include/SDL_keyboard.h index 3299c7963..51db9451c 100644 --- a/include/SDL_keyboard.h +++ b/include/SDL_keyboard.h @@ -74,7 +74,7 @@ typedef struct { * 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 @@ extern DECLSPEC int SDL_EnableUNICODE(int enable); /* * 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 @@ extern DECLSPEC int SDL_EnableKeyRepeat(int delay, int interval); * 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++ */ |