joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.66k stars 378 forks source link

Mouse is too fast #5157

Open anduril84 opened 1 month ago

anduril84 commented 1 month ago

Question

Hi, Tried to run "settlers" . But mouse is moving incredibly fast . Is there a sensivity setting/command for mouse ? I used "dosbox-x_MinGWx64_SDL1.exe" for running the game

Windows 10 HP Omen Laptop rtx 3060 Amd Processor

Have you checked that no similar question(s) exist?

Code of Conduct & Contributing Guidelines

maron2000 commented 1 month ago

Indeed the mouse runs quite quick. Try running CuteMouse before launching the game. You need to press CTRL+F10 to toggle mouse usage.

Dosbox-staging seems to handle mouse better for this game.

joncampbell123 commented 1 month ago

It's possible the game might read mouse movement by centering the cursor and then reading deviation from center.

The SDL library does that on Windows, for example, which worked extremely well until about Windows 8/10.

DOSBox-X, unless the mouse cursor is "captured", will return absolute cursor position within the emulator window if the mouse/keyboard is not captured, and will return only relative motion if mouse/keyboard is captured.

But if the game is using absolute mouse position as a hack to read relative mouse position, then you're going to have to capture mouse/keyboard to avoid the issue.