include/SDL_keyboard.h
changeset 7258 89d47188c9a4
parent 7191 75360622e65f
child 7312 b36811d7db33
equal deleted inserted replaced
7257:5997d00782e8 7258:89d47188c9a4
    64  *
    64  *
    65  *  \return An array of key states. Indexes into this array are obtained by using ::SDL_Scancode values.
    65  *  \return An array of key states. Indexes into this array are obtained by using ::SDL_Scancode values.
    66  *
    66  *
    67  *  \b Example:
    67  *  \b Example:
    68  *  \code
    68  *  \code
    69  *  Uint8 *state = SDL_GetKeyboardState(NULL);
    69  *  const Uint8 *state = SDL_GetKeyboardState(NULL);
    70  *  if ( state[SDL_SCANCODE_RETURN] )   {
    70  *  if ( state[SDL_SCANCODE_RETURN] )   {
    71  *      printf("<RETURN> is pressed.\n");
    71  *      printf("<RETURN> is pressed.\n");
    72  *  }
    72  *  }
    73  *  \endcode
    73  *  \endcode
    74  */
    74  */
    75 extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
    75 extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
    76 
    76 
    77 /**
    77 /**
    78  *  \brief Get the current key modifier state for the keyboard.
    78  *  \brief Get the current key modifier state for the keyboard.
    79  */
    79  */
    80 extern DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void);
    80 extern DECLSPEC SDL_Keymod SDLCALL SDL_GetModState(void);