include/SDL_keyboard.h
changeset 4465 3e69e077cb95
parent 3697 f7b03b6838cb
child 4750 22aa6a631d34
     1.1 --- a/include/SDL_keyboard.h	Sun May 09 19:55:28 2010 -0700
     1.2 +++ b/include/SDL_keyboard.h	Sun May 09 20:47:22 2010 -0700
     1.3 @@ -32,6 +32,7 @@
     1.4  #include "SDL_stdinc.h"
     1.5  #include "SDL_error.h"
     1.6  #include "SDL_keysym.h"
     1.7 +#include "SDL_video.h"
     1.8  
     1.9  #include "begin_code.h"
    1.10  /* Set up for C function definitions, even when using C++ */
    1.11 @@ -55,25 +56,12 @@
    1.12  /* Function prototypes */
    1.13  
    1.14  /**
    1.15 - *  \brief Get the number of keyboard input devices available.
    1.16 - *  
    1.17 - *  \sa SDL_SelectKeyboard()
    1.18 + *  \brief Get the window which currently has keyboard focus.
    1.19   */
    1.20 -extern DECLSPEC int SDLCALL SDL_GetNumKeyboards(void);
    1.21 +extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void);
    1.22  
    1.23  /**
    1.24 - *  \brief Set the index of the currently selected keyboard.
    1.25 - *  
    1.26 - *  \return The index of the previously selected keyboard.
    1.27 - *  
    1.28 - *  \note You can query the currently selected keyboard by passing an index of -1.
    1.29 - *  
    1.30 - *  \sa SDL_GetNumKeyboards()
    1.31 - */
    1.32 -extern DECLSPEC int SDLCALL SDL_SelectKeyboard(int index);
    1.33 -
    1.34 -/**
    1.35 - *  \brief Get a snapshot of the current state of the selected keyboard.
    1.36 + *  \brief Get a snapshot of the current state of the keyboard.
    1.37   *  
    1.38   *  \param numkeys if non-NULL, receives the length of the returned array.
    1.39   *  
    1.40 @@ -90,20 +78,20 @@
    1.41  extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
    1.42  
    1.43  /**
    1.44 - *  \brief Get the current key modifier state for the selected keyboard.
    1.45 + *  \brief Get the current key modifier state for the keyboard.
    1.46   */
    1.47  extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void);
    1.48  
    1.49  /**
    1.50 - *  \brief Set the current key modifier state for the selected keyboard.
    1.51 + *  \brief Set the current key modifier state for the keyboard.
    1.52   *  
    1.53   *  \note This does not change the keyboard state, only the key modifier flags.
    1.54   */
    1.55  extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate);
    1.56  
    1.57  /**
    1.58 - *  \brief Get the key code corresponding to the given scancode according to the
    1.59 - *         current keyboard layout.
    1.60 + *  \brief Get the key code corresponding to the given scancode according
    1.61 + *         to the current keyboard layout.
    1.62   *  
    1.63   *  See ::SDLKey for details.
    1.64   *