Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2013-09-01 18:30:30
Size: 1114
Comment: Updated usage of Color2 macro.
Revision 5 as of 2014-07-04 12:03:36
Size: 1117
Comment: Removed old formatting (from Feedback).
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Use this function to set ^the^ relative mouse mode. Use this function to set relative mouse mode.
Line 16: Line 16:
||'''enabled'''||whether or not to enable relative mode^; SDL_TRUE for enabled???^|| ||'''enabled'''||whether or not to enable relative mode, SDL_TRUE for enabled relative mode||

DRAFT

SDL_SetRelativeMouseMode

Use this function to set relative mouse mode.

Syntax

int SDL_SetRelativeMouseMode(SDL_bool enabled)

Function Parameters

enabled

whether or not to enable relative mode, SDL_TRUE for enabled relative mode

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

If relative mode is not supported this returns -1.

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