Package jltk
Class Mouse
- java.lang.Object
- 
- jltk.Mouse
 
- 
 public class Mouse extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Mouse()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intbutton()Return the number of the mouse botton, that was pressed last.static intgetX()Return the current x-coordinate of the mouse cursor on the current window., no matter if the mouse is pressed or not.static intgetY()Return the current y-coordinate of the mouse cursor on the current window., no matter if the mouse is pressed or not.static booleanisPressed()Returns true, if the mouse is pressed, just in the moment this method is called.static booleanwasDoubleclick()Return true, if the last mouse click was a double click.
 
- 
- 
- 
Method Detail- 
getXpublic static int getX() Return the current x-coordinate of the mouse cursor on the current window., no matter if the mouse is pressed or not.- Returns:
- x-coordinate of the mouse cursor
 
 - 
getYpublic static int getY() Return the current y-coordinate of the mouse cursor on the current window., no matter if the mouse is pressed or not.- Returns:
- y-coordinate of the mouse cursor
 
 - 
isPressedpublic static boolean isPressed() Returns true, if the mouse is pressed, just in the moment this method is called.- Returns:
- true, if mouse is pressed.
 
 - 
wasDoubleclickpublic static boolean wasDoubleclick() Return true, if the last mouse click was a double click.- Returns:
- true, if the last click was a double click.
 
 - 
buttonpublic static int button() Return the number of the mouse botton, that was pressed last. Mostly 1 is the left button, 2 the middle button an 3 the right button. If no button was pressed, 0 is returned.- Returns:
- The number of mouse button
 
 
- 
 
-