[AD] Mouse Locking

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


Whats the general feel about this amoung allegro
developers?  I'd like to see some kind of
functionality that would keep the mouse locked inside
of the program in windowed mode.  Evert mentioned
something about repositioning the OS's mouse to the
middle of the screen every cycle (not sure if he was
relating to this or not), and that seems like a
possible method of accomplishing this although only
useful in larger windows.  Do most OSs provide
functionality to lock the mouse inside a window?

Anyway, what im thinking is an additional two
functions in the API, lock_mouse(), and
release_mouse().  What do you guys think of the idea?




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