Class EventKeyboard
java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.client.input.EventKeyboard
- All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable
public class EventKeyboard
extends org.rusherhack.core.event.type.EventCancellable
This event is called during keyboard updates
- See Also:
-
Constructor Summary
-
Method Summary
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
-
EventKeyboard
public EventKeyboard(int key, int scanCode, int action, int modifiers)
-
-
Method Details
-
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 openStage.POST
- called after the key is processed- Specified by:
getStage
in interfaceorg.rusherhack.core.event.stage.IStageable
- Overrides:
getStage
in classorg.rusherhack.core.event.type.Event
-
getKey
public int getKey() -
getScanCode
public int getScanCode() -
getAction
public int getAction()- Returns:
GLFW.GLFW_PRESS
GLFW.GLFW_RELEASE
GLFW.GLFW_REPEAT
-
getModifiers
public int getModifiers()
-