开发者

Java check mouse button state

开发者 https://www.devze.com 2023-02-21 05:02 出处:网络
How can I check the state of the mouse buttons in Java? I cannot use mouse even开发者_Go百科ts, as it involves getting \'mouse released\' on an element that has never received \'mouse pressed\', so I

How can I check the state of the mouse buttons in Java? I cannot use mouse even开发者_Go百科ts, as it involves getting 'mouse released' on an element that has never received 'mouse pressed', so I theoretically could use events if it intercepted mouse events system wide, but that would probably be a security risk. If I can't do this with java, I am happy to write a native interface, and I am developing on Mac 10.6.


Three words:

Global Event Listeners

0

精彩评论

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