[AD] [ alleg-Bugs-3535030 ] OSX: Mouse freezes after warp via al_set_mouse_xy()

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


Bugs item #3535030, was opened at 2012-06-13 16:42
Message generated for change (Comment added) made by steelraven7
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3535030&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: SteelRaven7 (steelraven7)
Assigned to: Nobody/Anonymous (nobody)
Summary: OSX: Mouse freezes after warp via al_set_mouse_xy()

Initial Comment:
The mouse stops accepting input for about 500 ms after a al_set_mouse_xy() function call. Elias noted that this might be caused by an event supression described here: http://developer.apple.com/library/mac/#documentation/Carbon/Reference/QuartzEventServicesRef/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/c/func/CGSetLocalEventsSuppressionInterval

----------------------------------------------------------------------

>Comment By: SteelRaven7 (steelraven7)
Date: 2012-06-14 10:27

Message:
The same program was tested on three different rigs, running OSX 10.7.3,
10.7.4 and 10.6.8. Both touchpads and mice were used on at least one of the
tests.

----------------------------------------------------------------------

Comment By: Elias Pschernig (elias)
Date: 2012-06-14 10:07

Message:
Thanks for the report. I just tried fixing it, but
CGSetLocalEventsSuppressionInterval is deprecated (and doesn't seem to do
anything in OSX 10.7). So I won't be able to fix this after all. Maybe
someone else knows what to do instead?

Also, which Mac and which OSX version and which mouse are you using? On my
Macbook ex_warp_mouse works perfectly both with a wireless USB mouse as
well as with the touchpad, so I also have no way to test this issue.

Apple documentation does mention a 250ms delay after "synthetic events",
but CGDisplayMoveCursorToPoint which we are using actually just
re-positions the mouse cursor without generating any events. So I'm not
even sure that's the problem (it does sound like it, but why would it not
appear on all macs then?).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=3535030&group_id=5665




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