In my program I'm having a thread that is doing stuff with java Robot. This thread includes delays so I would like to prevent myself interrupting the robot by moving mouse or clicking. So is there a way to mouse input in Java?
Asked
Active
Viewed 143 times
0
-
You can check the MouseListener class - https://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html – Andrei Tigau Oct 14 '19 at 13:39
-
Possible duplicate of [Java - Freeze Mouse](https://stackoverflow.com/questions/23724973/java-freeze-mouse) – TheWhiteRabbit Oct 14 '19 at 13:40
-
4Possible duplicate of [Disabling keyboard/mouse in Java](https://stackoverflow.com/questions/6351307/disabling-keyboard-mouse-in-java) – Reznik Oct 14 '19 at 13:41
-
try to consume any mouse event or keyboard event – Ahmed Emad Oct 14 '19 at 13:46