[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> a square function?
> well, it would make the speed even bigger, wouldnt it?
> for example, 2 pixels would become 4, and 4 16...
>
> remember also that mouse function with the multiplying is called so often
> that you must move the mouse very fast in order to get that *2 or *4
> acceleration (and in fact, that's the whole point, isnt it?)
If it's so small values, then how about a table ?
This could be overridable (maybe) and by default use either linear
(eg table[i]=i;) or some power (table[i]=(int)pow(i,1.1);)
If the movement gets out of the table, well... hmmm ...
make a big table and clamp speed (or divide it into more chunks) ?
The bad thing is that the typical move length might be dependant on
the actual resolution. Is it ?
--
Lyrian