Re: [AD] position_mouse failure on Mac OSX 10.4.2

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


Dustin,

Is this in both windowed and non-windowed modes?
Have you got any example code that shows the weird and funky things?

It looks like you are right (at least SDL uses that function too) so I will prepare a patch.

Pete

> 
> From: Dustin Dettmer <dustin@xxxxxxxxxx>
> Date: 2005/11/23 Wed AM 07:08:44 GMT
> To: alleg-developers <alleg-developers@xxxxxxxxxx>
> Subject: [AD] position_mouse failure on Mac OSX 10.4.2
> 
> position_mouse didn't seem to work for me, it did
> weird funky things. After talking with some Mac
> developers the function being used inside of
> osx_mouse_position:
> 
> CGDisplayMoveCursorToPoint(kCGDirectMainDisplay,
> point);
> 
> aparently isn't what you're supposed to do. Instead
> you're supposed to use this:
> 
> CGSetLocalEventsSuppressionInterval(0);
> CGWarpMouseCursorPosition(point);
> 
> The code earlier in the function that translates the
> window coordinates to global coordinates is still
> correct for this new function.
> 
> In practice i noticed that this new osx_position_mouse
> function could not be called in tight loops as it
> seemed to mess up the click registering and was
> seemingly time intensive. This might be solved by
> putting CGSetLocalEventsSuppressionInterval(0) in the
> init code instead. If not, maybe the docs should
> mention to not do that.
> 
> http://www.allegro.cc/forums/view_thread.php?_id=547091
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> -- 
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
> 

-----------------------------------------
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software 
Visit www.ntlworld.com/security for more information





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