mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
disable system cursor when in relative mouse mode
This commit is contained in:
parent
4f8e924067
commit
7a5285cff0
|
@ -69,12 +69,14 @@ void CInput::MouseRelative(float *x, float *y)
|
||||||
void CInput::MouseModeAbsolute()
|
void CInput::MouseModeAbsolute()
|
||||||
{
|
{
|
||||||
m_InputGrabbed = 0;
|
m_InputGrabbed = 0;
|
||||||
|
SDL_ShowCursor(SDL_ENABLE);
|
||||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInput::MouseModeRelative()
|
void CInput::MouseModeRelative()
|
||||||
{
|
{
|
||||||
m_InputGrabbed = 1;
|
m_InputGrabbed = 1;
|
||||||
|
SDL_ShowCursor(SDL_DISABLE);
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue