MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / setCursorLocked

Method setCursorLocked

src/Abyss/AbyssEngine.cpp:365–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363void AbyssEngine::setCursorImage(const std::string_view cursorName) { _cursorImage = _cursors[cursorName.data()].get(); }
364
365void AbyssEngine::setCursorLocked(const bool locked) { SDL_SetRelativeMouseMode(locked ? SDL_TRUE : SDL_FALSE); }
366
367Common::MouseState &AbyssEngine::getMouseState() { return _mouseState; }
368

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected