You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Which button was pressed, either LEFT, CENTER, or RIGHT. */
publicintgetButton() {
returnbutton;
}
// public void setButton(int button) {
// this.button = button;
// }
/** Do not use, getCount() is the correct method. */
@Deprecated
publicintgetClickCount() {
//return (int) amount; //clickCount;
returncount;
}
/** Do not use, getCount() is the correct method. */
@Deprecated
publicfloatgetAmount() {
//return amount;
returncount;
}
/**
* Number of clicks for mouse button events, or the number of steps (positive
* or negative depending on direction) for a mouse wheel event.
* Wheel events follow Java (see <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()">here</a>), so
* getAmount() will return "negative values if the mouse wheel was rotated
* up or away from the user" and positive values in the other direction.
* On Mac OS X, this will be reversed when "natural" scrolling is enabled