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
Constructors -
Method Summary
Methods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelledMethods 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:
getStagein interfaceorg.rusherhack.core.event.stage.IStageable- Overrides:
getStagein classorg.rusherhack.core.event.type.Event
-
getKey
public int getKey() -
getScanCode
public int getScanCode() -
getAction
public int getAction()- Returns:
GLFW.GLFW_PRESSGLFW.GLFW_RELEASEGLFW.GLFW_REPEAT
-
getModifiers
public int getModifiers()
-