include/SDL_keyboard.h
changeset 7258 89d47188c9a4
parent 7191 75360622e65f
child 7312 b36811d7db33
--- 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.