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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
org.rusherhack.core.event.stage.Stage
getStage()
Stage.PRE
- called before the key is processedMethods inherited from class org.rusherhack.client.api.events.client.input.EventMouse
getMouseX, getMouseY
Methods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelled
Methods 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_PRESS
GLFW.GLFW_RELEASE
GLFW.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:
getStage
in interfaceorg.rusherhack.core.event.stage.IStageable
- Overrides:
getStage
in classorg.rusherhack.core.event.type.Event
-