Re: [AD] mouse_api branch

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


On 8/26/06, Robert Ohannessian <ROhannessian@xxxxxxxxxx> wrote:
For any game where mouse movements are used, not having events generated
when the mouse is outside the window will make it very annoying for
users.
Right - the demo game for OpenLayer is a case in point.

There is a function in the vtable mouse_set_range() which could be
called with (INT_MIN, INT_MIN, INT_MAX, INT_MAX)  to 'unconstrain' the
mouse and (0, 0, SCREEN_W, SCREEN_H) to constrain it. There could be
convenience functions for these two cases.

Pete




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