Package me.hackware.api.event.impl
Class MouseClickEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.MouseClickEvent
Fired when a mouse button is clicked or released.
Cancellable — cancelling prevents the click from propagating.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MouseClickEvent.ActionfromGlfw(int action) intGLFW mouse button (0 = left, 1 = right, 2 = middle, etc.).intbooleanbooleanbooleanisPress()booleanbooleanMethods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
Constructor Details
-
MouseClickEvent
-
-
Method Details
-
getButton
public int getButton()GLFW mouse button (0 = left, 1 = right, 2 = middle, etc.). -
getAction
-
getModifiers
public int getModifiers() -
isPress
public boolean isPress() -
isRelease
public boolean isRelease() -
isLeftClick
public boolean isLeftClick() -
isRightClick
public boolean isRightClick() -
isMiddleClick
public boolean isMiddleClick() -
fromGlfw
-