Class EventMouse.Key
java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.client.input.EventMouse
org.rusherhack.client.api.events.client.input.EventMouse.Key
- All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable
- Enclosing class:
- EventMouse
This event is called when a mouse button is pressed or released
-
Nested Class Summary
Nested classes/interfaces inherited from class org.rusherhack.client.api.events.client.input.EventMouse
EventMouse.Key, EventMouse.Move, EventMouse.Scroll -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintorg.rusherhack.core.event.stage.StagegetStage()Stage.PRE- called before the key is processedMethods inherited from class org.rusherhack.client.api.events.client.input.EventMouse
getMouseX, getMouseYMethods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelledMethods inherited from class org.rusherhack.core.event.type.Event
getPreferredStage, setStage
-
Constructor Details
-
Key
public Key(int button, int action, int modifiers)
-
-
Method Details
-
getButton
public int getButton() -
getAction
public int getAction()- Returns:
GLFW.GLFW_PRESSGLFW.GLFW_RELEASEGLFW.GLFW_REPEAT
-
getModifiers
public int getModifiers() -
getStage
public org.rusherhack.core.event.stage.Stage getStage()Stage.PRE- called before the key is processedStage.ON- called before the key is pressed, but only while there is no gui screen open- Specified by:
getStagein interfaceorg.rusherhack.core.event.stage.IStageable- Overrides:
getStagein classorg.rusherhack.core.event.type.Event
-