Flash video hiding the cursor on Mac OS X

Posted by Tibor on Stack Overflow See other posts from Stack Overflow or by Tibor
Published on 2010-03-25T13:07:57Z Indexed on 2010/03/25 17:23 UTC
Read the original article Hit count: 399

Filed under:
|
|

I found a Core Graphics function, CGCursorIsVisible, that one can use to determine whether the mouse cursor is shown on screen.

I have a small app that uses a timer to call that function a few times a second to see if the cursor is shown or hidden (as I found no way to get my app notified when the mouse cursor shown/hidden status changes).

The above works correctly except… when the Flash browser plugin plays a video: the mouse cursor gets hidden after a few seconds of mouse inactivity but CGCursorIsVisible() still keeps telling me that the cursor is indeed shown as if nothing happened.

What I need is to be able to tell, at any given moment, whether the mouse cursor is shown to the end user on any screen.

Is there any way to do that even in the case of playing a video using the Flash plugin?

© Stack Overflow or respective owner

Related posts about macosx

Related posts about cursor