开发者

Detect if cursor is hidden on Mac OS X

开发者 https://www.devze.com 2023-02-11 04:47 出处:网络
Is there a programmatic, non-private-API way to detect whether the mouse cursor is hidden on Mac OS X? (As occurs, for example, when typing into开发者_StackOverflow a text field.)

Is there a programmatic, non-private-API way to detect whether the mouse cursor is hidden on Mac OS X? (As occurs, for example, when typing into开发者_StackOverflow a text field.)

NSCursor has hide and unhide but no isHidden. I'm wondering if there is some other API which might do what I want. C-based APIs are fine.


Try CGCursorIsVisible() (returns a BOOL).

0

精彩评论

暂无评论...
验证码 换一张
取 消