include/SDL_keyboard.h
changeset 7258 89d47188c9a4
parent 7191 75360622e65f
child 7312 b36811d7db33
     1.1 --- a/include/SDL_keyboard.h	Sun Jun 02 01:08:14 2013 -0700
     1.2 +++ b/include/SDL_keyboard.h	Sun Jun 02 01:09:12 2013 -0700
     1.3 @@ -66,13 +66,13 @@
     1.4   *
     1.5   *  \b Example:
     1.6   *  \code
     1.7 - *  Uint8 *state = SDL_GetKeyboardState(NULL);
     1.8 + *  const Uint8 *state = SDL_GetKeyboardState(NULL);
     1.9   *  if ( state[SDL_SCANCODE_RETURN] )   {
    1.10   *      printf("<RETURN> is pressed.\n");
    1.11   *  }
    1.12   *  \endcode
    1.13   */
    1.14 -extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
    1.15 +extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
    1.16  
    1.17  /**
    1.18   *  \brief Get the current key modifier state for the keyboard.