Window.mouseGrab

Wraps SDL_SetWindowMouseGrab (from SDL 2.0.16) which sets the status of the window grabbing onto mouse input

  1. bool mouseGrab()
  2. void mouseGrab(bool newMouseGrab)
    class Window
    @property @trusted
    static if(sdlSupport >= SDLSupport.v2_0_16)
    void
    mouseGrab

Parameters

newMouseGrab bool

true to enable mouse grab, otherwise false

Meta