include/SDL_mouse.h
changeset 2710 44e49d3fa6cf
parent 2284 545fbf461c5b
child 2718 abacf2555bb4
     1.1 --- a/include/SDL_mouse.h	Mon Aug 25 05:30:28 2008 +0000
     1.2 +++ b/include/SDL_mouse.h	Mon Aug 25 06:33:00 2008 +0000
     1.3 @@ -72,7 +72,7 @@
     1.4   *
     1.5   * \brief Get the window which currently has focus for the currently selected mouse.
     1.6   */
     1.7 -extern DECLSPEC SDL_WindowID SDLCALL SDL_GetMouseFocusWindow(void);
     1.8 +extern DECLSPEC SDL_WindowID SDLCALL SDL_GetMouseFocusWindow(int index);
     1.9  
    1.10  /**
    1.11   * \fn int SDL_SetRelativeMouseMode(SDL_bool enabled)
    1.12 @@ -92,7 +92,8 @@
    1.13   *
    1.14   * \sa SDL_GetRelativeMouseMode()
    1.15   */
    1.16 -extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled);
    1.17 +extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(int index,
    1.18 +                                                     SDL_bool enabled);
    1.19  
    1.20  /**
    1.21   * \fn SDL_bool SDL_GetRelativeMouseMode()
    1.22 @@ -101,7 +102,7 @@
    1.23   *
    1.24   * \sa SDL_SetRelativeMouseMode()
    1.25   */
    1.26 -extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void);
    1.27 +extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(int index);
    1.28  
    1.29  /**
    1.30   * \fn Uint8 SDL_GetMouseState(int *x, int *y)
    1.31 @@ -113,7 +114,7 @@
    1.32   * mouse cursor position relative to the focus window for the currently
    1.33   * selected mouse.  You can pass NULL for either x or y.
    1.34   */
    1.35 -extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y);
    1.36 +extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int index, int *x, int *y);
    1.37  
    1.38  /**
    1.39   * \fn Uint8 SDL_GetRelativeMouseState(int *x, int *y)
    1.40 @@ -124,7 +125,8 @@
    1.41   * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
    1.42   * mouse deltas since the last call to SDL_GetRelativeMouseState().
    1.43   */
    1.44 -extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
    1.45 +extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int index, int *x,
    1.46 +                                                        int *y);
    1.47  
    1.48  /**
    1.49   * \fn void SDL_WarpMouseInWindow(SDL_WindowID windowID, int x, int y)
    1.50 @@ -203,6 +205,16 @@
    1.51     Button 2:	Middle mouse button
    1.52     Button 3:	Right mouse button
    1.53   */
    1.54 +
    1.55 +/* FIXME: Where do these functions go in this header?
    1.56 +          Also, add doxygen documentation for these...
    1.57 +*/
    1.58 +extern DECLSPEC char *SDLCALL SDL_GetMouseName(int index);
    1.59 +
    1.60 +extern DECLSPEC int SDLCALL SDL_GetCursorsNumber(int index);
    1.61 +
    1.62 +extern DECLSPEC int SDLCALL SDL_GetCurrentCursor(int index);
    1.63 +
    1.64  #define SDL_BUTTON(X)		(1 << ((X)-1))
    1.65  #define SDL_BUTTON_LEFT		1
    1.66  #define SDL_BUTTON_MIDDLE	2