mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 10:04:18 +00:00
25216bfddb
For relative mouse movement in SDL, the `SDL_GetRelativeMouseState` function always returns distance that the mouse moved since the last call of this function. For joysticks, we only have access to the current axis values and no accumulated values. This made the relative joystick movement speed decrease a lot when the client's refresh rate is low. This is now counteracted by measuring the average time between calls of `IInput::Update` and multiplying the joystick movement by this number. Closes #6296. |
||
---|---|---|
.. | ||
android | ||
antibot | ||
base | ||
engine | ||
game | ||
macos | ||
masterping | ||
mastersrv | ||
rust-bridge | ||
steam | ||
test | ||
tools |