Re: [AD] [WIN] mouse acceleration |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> why not let set_gfx_mode() set the mouse accelleration factor according to
> the screen dimentions?
I don't know... should we hard-code any dependency between the mouse driver
and the gfx mode ? Currently, both mouse speed and acceleration don't depend
upon the gfx mode. It's the same thing in SVGAlib 1.4.3 for example.
> you can calculate the mouse accel factor like:
> mouse_accel = sqrt(screen_x*screen_y) / 250
Woooh ! What a pretty rule of thumb :-)
> and just use one max treshold rather than two tresholds perhaps.
> just an idea... i think this will give a better feeling when using the
> mouse.
The two thresholds scheme is borrowed from the built-in Windows NT mouse
driver (supposedly it's the same story under other Windows). It likely makes
acceleration smoother.
However SVGAlib for example uses only one threshold...
--
Eric Botcazou
ebotcazou@xxxxxxxxxx