Re: [AD] Windows mouse patch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Fri, 2004-12-03 at 15:59 +0100, Evert Glebbeek wrote:
> > Hum. I'm in windows right now (and your OS cursor patch works nicely
> > :) - but the 4.1.16 mouse moves much more like the windows mouse than
> > the one with this patch. Did anyone else try it? With current CVS, the
> > mouse is very hard to move, e.g. in the test program in the splines
> > test I barely can grab the boxes, and in scrabber i scroll immediately
> > all the way up/down with the demo.dat.
> 
> Hmm...
> See http://www.allegro.cc/forums/view_thread.php?_id=419045 for the
> original thread. What the patch should do is change the mouse scaling code
> to take into account the `real' distance the mouse has moved (vectorially)
> rather than the x and y components. This makes sense IMO, which is why I
> applied the patch. Can you try decreasing the thresholds (divide by two,
> say) and see if that cleans it up?
> 

Ah, thanks, I remember, looked good to me as well. Checking it again
now, I assume, it isn't guaranteed that dinput mouse events are
alternating X/Y pairs as the patch assumes.. so if i move
horizontal/vertical, it may get wrong now. Thinking about it, that may
be what I experienced, since dragging the scrollbar in grabber seemed to
be especially fast (and is nearly vertical movement). And the patch
seems to have multiplied both thresholds by 2 (may be wrong on that).
I'll try and to some more testing in windows (ugh, i always feel nervous
after some time in it :) tomorrow.

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/