Function setMouseCapture

Wraps SDL_CaptureMouse (from SDL 2.0.4) which sets mouse capture

void setMouseCapture (
  bool newMouseCapture
) @trusted;

Parameters

NameDescription
newMouseCapture true to enable mouse capture, otherwise false

Throws

dsdl2.SDLException if failed to toggle mouse capture