|
⇤ ← Revision 1 as of 2010-03-11 05:06:30
Size: 1150
Comment: create page, add content (Rev 5540)
|
Size: 1035
Comment: update content - changeset 4465
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
| Use this function to set relative mouse mode for the specified mouse. | Use this function to set ^the^ relative mouse mode. |
| Line 12: | Line 12: |
| int SDL_SetRelativeMouseMode(int index, SDL_bool enabled) |
int SDL_SetRelativeMouseMode(SDL_bool enabled) |
| Line 17: | Line 16: |
| ||'''index'''||the index of the specified mouse|| |
DRAFT |
SDL_SetRelativeMouseMode
Use this function to set the relative mouse mode.
Contents
Syntax
int SDL_SetRelativeMouseMode(SDL_bool enabled)
Function Parameters
enabled |
whether or not to enable relative mode; SDL_TRUE for enabled??? |
Return Value
Returns 0 on success, or -1 if relative mode is not supported; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
While the mouse is in relative mode, the cursor is hidden, and the driver will try to report continuous motion in the current window. Only relative motion events will be delivered, the mouse position will not change.
This function will flush any pending mouse motion.
