Window.keyboardGrab

Wraps SDL_SetWindowKeyboardGrab (from SDL 2.0.16) which sets the status of the window grabbing onto keyboard input

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

Parameters

newKeyboardGrab bool

true to enable keyboard grab, otherwise false

Meta