简体   繁体   中英

Detect if cursor is hidden on Mac OS X

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 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.

尝试CGCursorIsVisible() (返回BOOL )。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM