I'm seeking an API on Mac to confine a cursor to a region. E.g. the same as ClipCursor on Windows or XGrabPointer on linux.I'm finding CGAssociateMouseAndMouseCursorPosition and CGWarpMouseCursorPosition, which I suppose I could cobble together a solution with by disabling cursor movement, reading delta values, and warping the Mouse around so long as it would stay in my bounding rect. But.. would rather find a magic ClipCursor equivalent ;)
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
I'm seeking an API on Mac to confine a cursor to a region. E.g. the same as ClipCursor on Windows or XGrabPointer on linux.I'm finding CGAssociateMouseAndMouseCursorPosition and CGWarpMouseCursorPosition, which I suppose I could cobble together a solution with by disabling cursor movement, reading delta values, and warping the Mouse around so long as it would stay in my bounding rect. But.. would rather find a magic ClipCursor equivalent ;)
--
Is your goal to get Mac users to grab torches and pitchforks?Because, if you actually implement this, I'm pretty sure that's what would happen. :)