setMouseCapture

Wraps SDL_CaptureMouse (from SDL 2.0.4) which sets mouse capture

@safe @trusted
static if(sdlSupport >= SDLSupport.v2_0_4)
void
setMouseCapture

Parameters

newMouseCapture bool

true to enable mouse capture, otherwise false

Throws

dsdl2.SDLException if failed to toggle mouse capture

Meta