Re: [AD] OSX and Windowed mouse behaviour

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


> I've noticed that under OSX in windowed mode, the system mouse pointer
> and the Allegro mouse pointer sometimes become unsynced.  I was looking
> in src/macosx/system.m, in the window handler code, and noticed that
> the code only seems to track mouse deltas, which would explain this
> behaviour -- might it be better in windowed mode to check the mouse
> position by doing NSPointInRect(mousecoords, view), and then warping
> the mouse pointer to this new point?

Actually the mouse deltas approach is used only if in fullscreen mode. If in
windowed mode, the NSPointInRect() function is used (system.m, line 242).

-- 
Angelo Mottola
a.mottola@xxxxxxxxxx





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