Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Carbon 将鼠标移动剪辑到窗口区域?
我认为没有任何简单的方法可以做到这一点,这很好……这是一种“非 Mac 式”的行为,会让你的用户感到害怕。也就是说,可能可以使用CGAssociateMouseAndMouseCursorPosition将鼠标与光标位置分离,然后监视鼠标事件并将光标移动到您想要的位置。
CGAssociateMouseAndMouseCursorPosition