--- a/include/SDL_keyboard.h Sun Jun 02 01:08:14 2013 -0700
+++ b/include/SDL_keyboard.h Sun Jun 02 01:09:12 2013 -0700
@@ -66,13 +66,13 @@
*
* \b Example:
* \code
- * Uint8 *state = SDL_GetKeyboardState(NULL);
+ * const Uint8 *state = SDL_GetKeyboardState(NULL);
* if ( state[SDL_SCANCODE_RETURN] ) {
* printf("<RETURN> is pressed.\n");
* }
* \endcode
*/
-extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
+extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
/**
* \brief Get the current key modifier state for the keyboard.