Cradle
Not enough ratings
[RU | EN] Чиним залипание мыши / Mouse snapping fix
By Malok
Делаем движение камеры таким, каким оно и должно быть / Making camera movement the way it should be
   
Award
Favorite
Favorited
Unfavorite
RU
Что делать?
  1. Качаем архив: CradleMouseFix [drive.google.com]
  2. Распаковываем в папку с игрой
  3. Радуемся нормальному движению камеры, как в любой другой игре

Почему так?
Я не знаю, кому из разрабов пришла эта без сомниния гениальная идея, но суть в том что в коде происходит такая штука:
float default_threshold = 0.2f; float device_threshold = default_threshold; if(abs(device_state_value) < device_threshold) return neutral_state_value;
У нас есть минимальное ускорение, которое нужно придать курсору, чтобы тот начал двигаться, а если его недостаточно, то игра не обрабатывает эти движения. Таким образом, если двигать мышкой достаточно медленно, можно проехать весь стол, а курсор не двинется с места. А если занулить этот параметр, то и проблема уйдёт.

Возможно идея была в том чтобы сделать что-то вроде сглаживающего фильтра, хотя больше похоже на фильтр против дрожания курсора. По итогу получилось так, что обычное управление камерой превратилось в натуральную пытку, особенно в игре, где приходится много наводиться на маленькие объекты, совершая те самые небольшие движения.
EN
What to do?
  1. Download the archive: CradleMouseFix[drive.google.com]
  2. Unzip it into the game folder
  3. Enjoy proper camera movement like in any other game

Why is this happening?
I don't know who from the developers came up with this undoubtedly brilliant idea, but the point is that in the code there is such a thing:
float default_threshold = 0.2f; float device_threshold = default_threshold; if(abs(device_state_value) < device_threshold) return neutral_state_value;
We have a minimum acceleration that we need to give to the cursor to make it move, and if it is not enough, the game does not process these movements. So, if you move the mouse slowly enough, you can drive the whole table and the cursor will not move. And if you set this parameter to zero, the problem will disappear.

Possibly the idea was to make something like a smoothing filter, though it looks more like a filter against cursor jitter. As a result, it turned out so that the usual camera control turned into a natural torture, especially in the game, where you have to aim a lot at small objects, making those very small movements.