Re: [AD] Is al_set_mouse_range any useful?

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


On 10/9/07, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
>
> Yes you can: set_mouse_range(0,0,SCREEN_W-1, SCREEN_H-1), which is
> the default setting (see the docs).

Yes, for fullscreen modes, it makes sense. The new ones I proposed
still would work the same in fullscreen, but have a much better
extension to windowed mode (since in windowed mode, the old behavior
makes no sense at all).

> > And second, there would be a parameter to specify the window to
> > which to
> > confine the mouse, in the case of multiple windows.
>
> Well, I think multiple windows are something that should be
> considered, but it's a separate issue to wether or not the current
> functionality is broken or not (it isn't). I think there are other
> concerns in trapping the mouse in a particular window, let alone a
> region within the window, that we should think about. We probably do
> need to give the programmer the option of trapping the mouse within
> the application window because there are cases where it's useful
> (although I still hate it personally).

Yes, I hate them as well, hence the warning in my proposal. Still, for
playing a 3d shooter in windowed mode with the mouse, or running UAE
or DOSBox, it is necessary to have such a feature. (Ideally, all those
apps provide a sane way to get out of the mouse capture mode of
course.)




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