Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2010-10-18 03:18:47
Size: 668
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 8 as of 2011-03-13 21:18:52
Size: 677
Editor: SheenaSmith
Comment: update content - 3/13 e20c93bc9122 (2/27 424f036f7c68)
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
#pragma disable-camelcase #pragma camelcase off
Line 12: Line 12:
                       int mode)                        SDL_bool mode)
Line 17: Line 17:
||'''mode'''||1 to grab input or 0 to release input|| ||'''mode'''||SDL_TRUE to grab input, SDL_FALSE to release input||

SDL_SetWindowGrab

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

Syntax

void SDL_SetWindowGrab(SDL_Window* window,
                       SDL_bool    mode)

Function Parameters

window

the window to change

mode

SDL_TRUE to grab input, SDL_FALSE 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