public class MouseInfo
extends java.lang.Object
Greenfoot.getMouseInfo()
.Greenfoot.getMouseInfo()
Modifier and Type | Method and Description |
---|---|
Actor |
getActor()
Return the actor (if any) that the current mouse behaviour is related to.
|
int |
getButton()
The number of the pressed or clicked button (if any).
|
int |
getClickCount()
Return the number of mouse clicks associated with this mouse event.
|
int |
getX()
Return the current x position of the mouse cursor.
|
int |
getY()
Return the current y position of the mouse cursor.
|
java.lang.String |
toString() |
public int getX()
public int getY()
public Actor getActor()
public int getButton()
public int getClickCount()
public java.lang.String toString()
toString
in class java.lang.Object