开发者

Clip mouse movement in Carbon

开发者 https://www.devze.com 2022-12-28 20:22 出处:网络
How can I clip the mouse movement 开发者_高级运维into a window Region using Carbon?I don\'t think there is any simple way to do it, and that\'s good... it\'s a \"non-Mac-like\" behavior that will frea

How can I clip the mouse movement 开发者_高级运维into a window Region using Carbon?


I don't think there is any simple way to do it, and that's good... it's a "non-Mac-like" behavior that will freak out your users. That said, it would probably be possible to use CGAssociateMouseAndMouseCursorPosition to uncouple the mouse from the cursor position, then monitor mouse events and move the cursor to where you want.

0

精彩评论

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