MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetWindowGrab

Method SetWindowGrab

Source/Graphics/graphics.cpp:1495–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493}
1494
1495void Graphics::SetWindowGrab(bool val) {
1496 if (!val || SDL_GetKeyboardFocus() == sdl_window_) {
1497 SDL_SetWindowGrab(sdl_window_, val ? SDL_TRUE : SDL_FALSE);
1498 }
1499}
1500
1501void Graphics::SetClientStates(int flags) {
1502 SetClientStateEnabled(CS_VERTEX_ARRAY, (flags & F_VERTEX_ARRAY) != 0);

Callers 3

SetGrabMouseMethod · 0.80
HandleEventMethod · 0.80
UpdateControlsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected