Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-01-21 17:42:31
Size: 763
Editor: SheenaSmith
Comment: update WindowID > Window*
Revision 3 as of 2010-09-03 23:38:34
Size: 727
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''window'''||description||
||'''mode'''||this is 1 to grab input, and 0 to release input ^''suggest alt: 1 to grab input or 0 to release input''^||
||'''window'''||the window to change||
||'''mode'''||1 to grab input or 0 to release input||
Line 26: Line 26:
''You can add useful comments here'' When input is grabbed the mouse is confined to the window.

DRAFT

SDL_SetWindowGrab

Use this function to set the window's input grab mode.

Syntax

void SDL_SetWindowGrab(SDL_Window* window,
                       int         mode)

Function Parameters

window

the window to change

mode

1 to grab input or 0 to release input

Code Examples

You can add your code example here

Remarks

When input is grabbed the mouse is confined to the window.


CategoryAPI, CategoryVideo

None: SDL_SetWindowGrab (last edited 2015-03-29 21:55:12 by PhilippWiesemann)

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