Interrupt / Interrupt/systemshock

Mouse speed + double click annoyance in Linux

Open
#389 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
900
Forks
77
Avg merge
2d 2h
Merged PRs (30d)
1

Description

I can compare two builds of Shockolate: WIN32 and Linux 64.
Somehow no problems with WIN32 in this regard, but the Linux 64 version has an annoyance with the mouse control, two things:

1 - Mouse double click is not working comfortably, often the double click is not registered as such. I fixed it by increasing the time window in which the second click can be registered to make for a double click:
src\GameSrc\input.c line 1147:
```
- uiDoubleClickTime = 45;
+ uiDoubleClickTime = 90;
```

2 - Mouse cursor speed (sensitivity?) is more then halved when in the 3D game, compared to the main menu or options menu. I found a way to maintain full cursor speed with the modification below. Setting RelativeMouseMode to False before the check for it. But since I do not know exactly what it implies, I do not dare to call it a proper fix:
src\Libraries\INPUT\Source\sdl_events.c line 692:
```
case SDL_MOUSEMOTION: {
+ SDL_SetRelativeMouseMode(SDL_FALSE); // added line
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.