include/SDL_mouse.h
branchgsoc2008_manymouse
changeset 3776 a9c2a7071874
parent 3774 8b5b67000dc0
     1.1 --- a/include/SDL_mouse.h	Tue Aug 05 14:18:40 2008 +0000
     1.2 +++ b/include/SDL_mouse.h	Wed Aug 06 08:48:43 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,7 @@
    1.13   *
    1.14   * \sa SDL_GetRelativeMouseMode()
    1.15   */
    1.16 -extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled, int index);
    1.17 +extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(int index, SDL_bool enabled);
    1.18  
    1.19  /**
    1.20   * \fn SDL_bool SDL_GetRelativeMouseMode()
    1.21 @@ -101,7 +101,7 @@
    1.22   *
    1.23   * \sa SDL_SetRelativeMouseMode()
    1.24   */
    1.25 -extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void);
    1.26 +extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(int index);
    1.27  
    1.28  /**
    1.29   * \fn Uint8 SDL_GetMouseState(int *x, int *y)
    1.30 @@ -113,7 +113,7 @@
    1.31   * mouse cursor position relative to the focus window for the currently
    1.32   * selected mouse.  You can pass NULL for either x or y.
    1.33   */
    1.34 -extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y);
    1.35 +extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int index, int *x, int *y);
    1.36  
    1.37  /**
    1.38   * \fn Uint8 SDL_GetRelativeMouseState(int *x, int *y)
    1.39 @@ -124,7 +124,7 @@
    1.40   * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
    1.41   * mouse deltas since the last call to SDL_GetRelativeMouseState().
    1.42   */
    1.43 -extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
    1.44 +extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int index, int *x, int *y);
    1.45  
    1.46  /**
    1.47   * \fn void SDL_WarpMouseInWindow(SDL_WindowID windowID, int x, int y)
    1.48 @@ -210,6 +210,8 @@
    1.49  
    1.50  extern DECLSPEC int SDLCALL SDL_GetCursorsNumber(int index);
    1.51  
    1.52 +extern DECLSPEC int SDLCALL SDL_GetCurrentCursor(int index);
    1.53 +
    1.54  #define SDL_BUTTON(X)		(1 << ((X)-1))
    1.55  #define SDL_BUTTON_LEFT		1
    1.56  #define SDL_BUTTON_MIDDLE	2