Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: MovGP0 on March 02, 2005, 11:16:59 am

Title: Better Mouse Support/use of modifier keys
Post by: MovGP0 on March 02, 2005, 11:16:59 am
Copy from: The Babylon Project Forum (http://www.hard-light.net/forums/index.php/topic,30723.0.html)

Some suggestions for Mouse Flight:

(1) use of modifier-key:
holding a modifier key should lead to faster movement; else there should be the actual precision

Benefit:
use of only one accelarator key instead of four; more precise

(2) relative mouse position:
speed and direction should dependend on the position of the mouse rather than the movement of the mouse; this means the wider the mouse is away from the middle dot of the screen the faster the ship should turn

Benefit:
no scrap-scrap; keeps precision

(2.1) eventually you can use log-scaled speed
speed = speed*k*1/log[1+sqrt(dx²+dy²)]
(hopefully this formula is correct - I haven't checked it)

Benefit:
makes suggestion (1) obvious

Drawback:
more to compute
need a litte bit to learn how to use

Solution to Drawback #1:
do not log-scale; use a inner (slow move) and outher (fast move) region

(2.2) Weapons should fire to mouse position rather than to screen middle (if the weapons are moveable like turrents)

Benefit:
better hit-rates even with lower precision

------------------
Better Mouse-Key Settings:

Left Click/Hold: Fire primary Weapon
Doubleclick: Fire Rocket [1]

MouseWheelUp: faster
MouseWheelDown: slower

Middle + MouseWheelUp: next enemy Target
Middle + MouseWheelDown: prev. enemy Target

Shift + MouseWheelUp: next friendly Target
Shift + MouseWheelDown: prev. friendly Target

Shift + Middle + MouseWheelUp: next Subtarget
Shift + Middle + MouseWheelDown: prev Subtarget

Right Click: select visble Target or use HUD Control [2]

[1] Diabolo users will hate that ;)
[2] I like the way of selecting targets in Freelancer (every target is always marked - just click on them or select them from a list of possible targets) very much
Title: Better Mouse Support/use of modifier keys
Post by: Kai on March 02, 2005, 01:54:36 pm
wohoo do it pls if it is possible! I ONLY use mouse for flight control and id love to have it improved as much as possible;)
Title: Re: Better Mouse Support/use of modifier keys
Post by: jr2 on August 14, 2007, 07:35:06 am
:bump:
:necro:

Umm, no response???????
Title: Re: Better Mouse Support/use of modifier keys
Post by: Tolwyn on August 14, 2007, 10:35:25 am
this is pure necromancy  :wtf:
Title: Re: Better Mouse Support/use of modifier keys
Post by: jr2 on August 14, 2007, 10:43:19 am
Well, I noticed it... and the fact that no one replied to it in any meaningful way, not even to say "no, we can't do this"... I thought it looked like a good idea, in fact I'd probably have posted a similar thread sooner or later; I just got the opportunity dumped in my lap when this came up while I was searching for Nuke's JoyMouse thread.  But, uh, "this is pure necromancy  :wtf:" yeah, I know. :nervous:
Title: Re: Better Mouse Support/use of modifier keys
Post by: Nuke on August 15, 2007, 11:32:04 pm
that script is posted oddly enough, on the scripting board. and the scripting board is only 2 pages long.

also, isnt an imput upgrade slated to be implemented at some point anyway.
Title: Re: Better Mouse Support/use of modifier keys
Post by: jr2 on August 16, 2007, 01:50:40 am
So how did it get buried unanswered all this time?
Title: Re: Better Mouse Support/use of modifier keys
Post by: Nuke on August 16, 2007, 06:37:22 am
nobody was cool enough or smart enough to use it maybe :D