[AD] al_set_mouse_xy asynchronous on X

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


This poses a problem. In my game I have (simplified):

al_set_mouse_xy(...);
// bunch of code later
al_get_mouse_state();
// state.x/y are still not the same as I set them

So my submarine crashes.

The fix that I think should be applied (but I want to check with the X/Linux "guys") is an XFlush in the X set_mouse_xy implementation. Works like a charm.

Trent



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