Re: [AD] Using system mouse cursor

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


Peter Wang wrote:
As I said, warping the mouse cursor back to the centre of the screen was a hack from XWinAllegro days (pre-Allegro 3.9.x) exactly to get around this limitation. It's supposed to get behaviour more approximate to what you would have got on DOS.

The Windows port doesn't do this, so there's an inconsistency.

Do you mean that the user should be responsible for calling set_mouse_position() on platforms where he wants get_mouse_mickeys() to have an infinite range of movement?

They currently have to if they want it to work under windowed modes in Windows. And I think it's a good idea to change X to behave like Windows (eg. allow the mouse to leave the window) since auto-mouse-trapping is A Bad Thing, IMO.

That said, no that's not what I meant. What I meant was to implement set_mouse_range so the OS properly traps it in the window for us (if the range size is less than the window size).

- Kitty Cat




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