From 7a5285cff0e568a551034b4dada57472465bb901 Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 23 Oct 2015 09:56:41 +0200 Subject: [PATCH] disable system cursor when in relative mouse mode --- src/engine/client/input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index fe6c7f810..45465c698 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -69,12 +69,14 @@ void CInput::MouseRelative(float *x, float *y) void CInput::MouseModeAbsolute() { m_InputGrabbed = 0; + SDL_ShowCursor(SDL_ENABLE); SDL_SetRelativeMouseMode(SDL_FALSE); } void CInput::MouseModeRelative() { m_InputGrabbed = 1; + SDL_ShowCursor(SDL_DISABLE); SDL_SetRelativeMouseMode(SDL_TRUE); }