Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-03-11 05:06:30
Size: 1150
Editor: SheenaSmith
Comment: create page, add content (Rev 5540)
Revision 2 as of 2010-08-13 03:50:15
Size: 1035
Editor: SheenaSmith
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.

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.


CategoryAPI, CategoryMouse

None: SDL_SetRelativeMouseMode (last edited 2015-05-31 19:18:58 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit