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?
I know nothing about the MacOS X port, but the Windows port uses this
approach in windowed mode. The drawback is that no movement is detected when
the pointer is blocked (for example in one of the desktop's corners).
--
Eric Botcazou