comparison include/SDL_mouse.h @ 3776:a9c2a7071874 gsoc2008_manymouse

upgraded functions
author Szymon Wilczek <kazeuser@gmail.com>
date Wed, 06 Aug 2008 08:48:43 +0000
parents 8b5b67000dc0
children
comparison
equal deleted inserted replaced
3775:e5011833348a 3776:a9c2a7071874
70 /** 70 /**
71 * \fn SDL_WindowID SDL_GetMouseFocusWindow(void) 71 * \fn SDL_WindowID SDL_GetMouseFocusWindow(void)
72 * 72 *
73 * \brief Get the window which currently has focus for the currently selected mouse. 73 * \brief Get the window which currently has focus for the currently selected mouse.
74 */ 74 */
75 extern DECLSPEC SDL_WindowID SDLCALL SDL_GetMouseFocusWindow(void); 75 extern DECLSPEC SDL_WindowID SDLCALL SDL_GetMouseFocusWindow(int index);
76 76
77 /** 77 /**
78 * \fn int SDL_SetRelativeMouseMode(SDL_bool enabled) 78 * \fn int SDL_SetRelativeMouseMode(SDL_bool enabled)
79 * 79 *
80 * \brief Set relative mouse mode for the currently selected mouse. 80 * \brief Set relative mouse mode for the currently selected mouse.
90 * 90 *
91 * \note This function will flush any pending mouse motion. 91 * \note This function will flush any pending mouse motion.
92 * 92 *
93 * \sa SDL_GetRelativeMouseMode() 93 * \sa SDL_GetRelativeMouseMode()
94 */ 94 */
95 extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled, int index); 95 extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(int index, SDL_bool enabled);
96 96
97 /** 97 /**
98 * \fn SDL_bool SDL_GetRelativeMouseMode() 98 * \fn SDL_bool SDL_GetRelativeMouseMode()
99 * 99 *
100 * \brief Query whether relative mouse mode is enabled for the currently selected mouse. 100 * \brief Query whether relative mouse mode is enabled for the currently selected mouse.
101 * 101 *
102 * \sa SDL_SetRelativeMouseMode() 102 * \sa SDL_SetRelativeMouseMode()
103 */ 103 */
104 extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(void); 104 extern DECLSPEC SDL_bool SDLCALL SDL_GetRelativeMouseMode(int index);
105 105
106 /** 106 /**
107 * \fn Uint8 SDL_GetMouseState(int *x, int *y) 107 * \fn Uint8 SDL_GetMouseState(int *x, int *y)
108 * 108 *
109 * \brief Retrieve the current state of the currently selected mouse. 109 * \brief Retrieve the current state of the currently selected mouse.
111 * The current button state is returned as a button bitmask, which can 111 * The current button state is returned as a button bitmask, which can
112 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the 112 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
113 * mouse cursor position relative to the focus window for the currently 113 * mouse cursor position relative to the focus window for the currently
114 * selected mouse. You can pass NULL for either x or y. 114 * selected mouse. You can pass NULL for either x or y.
115 */ 115 */
116 extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int *x, int *y); 116 extern DECLSPEC Uint8 SDLCALL SDL_GetMouseState(int index, int *x, int *y);
117 117
118 /** 118 /**
119 * \fn Uint8 SDL_GetRelativeMouseState(int *x, int *y) 119 * \fn Uint8 SDL_GetRelativeMouseState(int *x, int *y)
120 * 120 *
121 * \brief Retrieve the state of the currently selected mouse. 121 * \brief Retrieve the state of the currently selected mouse.
122 * 122 *
123 * The current button state is returned as a button bitmask, which can 123 * The current button state is returned as a button bitmask, which can
124 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the 124 * be tested using the SDL_BUTTON(X) macros, and x and y are set to the
125 * mouse deltas since the last call to SDL_GetRelativeMouseState(). 125 * mouse deltas since the last call to SDL_GetRelativeMouseState().
126 */ 126 */
127 extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int *x, int *y); 127 extern DECLSPEC Uint8 SDLCALL SDL_GetRelativeMouseState(int index, int *x, int *y);
128 128
129 /** 129 /**
130 * \fn void SDL_WarpMouseInWindow(SDL_WindowID windowID, int x, int y) 130 * \fn void SDL_WarpMouseInWindow(SDL_WindowID windowID, int x, int y)
131 * 131 *
132 * \brief Moves the currently selected mouse to the given position within the window. 132 * \brief Moves the currently selected mouse to the given position within the window.
207 extern DECLSPEC int SDLCALL SDL_GetNumOfMice(void); 207 extern DECLSPEC int SDLCALL SDL_GetNumOfMice(void);
208 208
209 extern DECLSPEC char* SDLCALL SDL_GetMouseName(int index); 209 extern DECLSPEC char* SDLCALL SDL_GetMouseName(int index);
210 210
211 extern DECLSPEC int SDLCALL SDL_GetCursorsNumber(int index); 211 extern DECLSPEC int SDLCALL SDL_GetCursorsNumber(int index);
212
213 extern DECLSPEC int SDLCALL SDL_GetCurrentCursor(int index);
212 214
213 #define SDL_BUTTON(X) (1 << ((X)-1)) 215 #define SDL_BUTTON(X) (1 << ((X)-1))
214 #define SDL_BUTTON_LEFT 1 216 #define SDL_BUTTON_LEFT 1
215 #define SDL_BUTTON_MIDDLE 2 217 #define SDL_BUTTON_MIDDLE 2
216 #define SDL_BUTTON_RIGHT 3 218 #define SDL_BUTTON_RIGHT 3