adjusting mouse speed (or configuring mouse control)

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
Anonymissimus
---- E L I T E ----
---- E L I T E ----
Posts: 299
Joined: Mon Apr 27, 2015 9:03 pm

adjusting mouse speed (or configuring mouse control)

Post by Anonymissimus »

So, I found the #defined constant MOUSEVIRTUALSTICKSENSITIVITYFACTOR in MyOpenGLView.h, and by increasing that constant, the mouse speed when aiming can be lowered, so that my aim isn't so much too left - too right - too left - too right - etc. So anyone able to compile the game can adjust it to his needs. Can this please be made configurable by editing some configuration file ? (Or is already, perhaps ?)
My mouse seems to be pretty fast, I found a way to slow it in the operating system (Linux), but it doesn't transfer to oolite, unlike on windows.
However, the drawback is that to spin around quickly, I have to move the mouse more now.
Is there a particular reason for why the joystick configuration is disabled other than "there is no joystick" ? The mouse control seems emulate a virtual joystick. Can the joystick configuration code be generalized to "input device configuration" ? Perhaps it would work for mouse (and keyboard) as well without much work ?
These movement/response curves here
http://www.bb.aegidian.org/viewtopic.ph ... t=joystick
look especially nice.
warning sound if a missile is inbound: Missile warning
Post Reply