MCPcopy Create free account
hub / github.com/ddnet/ddnet / MouseModeRelative

Method MouseModeRelative

src/engine/client/input.cpp:292–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void CInput::MouseModeRelative()
293{
294 m_InputGrabbed = true;
295 SDL_SetRelativeMouseMode(SDL_TRUE);
296 Graphics()->SetWindowGrab(true);
297 // Clear pending relative mouse motion
298 SDL_GetRelativeMouseState(nullptr, nullptr);
299}
300
301vec2 CInput::NativeMousePos() const
302{

Callers 3

RenderStartMenuMethod · 0.80
ToggleMethod · 0.80
RunMethod · 0.80

Calls 2

GraphicsFunction · 0.85
SetWindowGrabMethod · 0.45

Tested by

no test coverage detected