mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Normal mouse speed again
This commit is contained in:
parent
7a5b79e48a
commit
2a7aa33830
|
@ -62,13 +62,11 @@ void CInput::MouseRelative(float *x, float *y)
|
|||
*y = ny;
|
||||
#else
|
||||
int nx = 0, ny = 0;
|
||||
float Sens = ((g_Config.m_ClDyncam && g_Config.m_ClDyncamMousesens) ? g_Config.m_ClDyncamMousesens : g_Config.m_InpMousesens) / 100.0f;
|
||||
float Sens = ((g_Config.m_ClDyncam && g_Config.m_ClDyncamMousesens) ? g_Config.m_ClDyncamMousesens : g_Config.m_InpMousesens) / 50.0f;
|
||||
|
||||
if(m_InputGrabbed)
|
||||
SDL_GetRelativeMouseState(&nx,&ny);
|
||||
|
||||
// This might force us to double x and y on X11 when SDL >= 2.0.4:
|
||||
// https://bugzilla.libsdl.org/show_bug.cgi?id=2963
|
||||
*x = nx*Sens;
|
||||
*y = ny*Sens;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue