Java Mouse Test Button Status

How to check the state of mouse buttons in Java? I can’t use mouse events because it involves getting a “mouse released” on an item that never got a “mouse clicked,” so I could theoretically use events if it intercepted mouse events on the system, but that would probably be security risk. If I cannot do this using java, I am happy to write my own interface, and I am developing it on Mac 10.6.

0
source share
1 answer
+1
source

Source: https://habr.com/ru/post/1387329/


All Articles