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
    Constructor
    Description
    EventKeyboard(int key, int scanCode, int action, int modifiers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    int
     
    int
     
    org.rusherhack.core.event.stage.Stage
    Stage.PRE - called before the key is processed

    Methods inherited from class org.rusherhack.core.event.type.EventCancellable

    isCancelled, setCancelled

    Methods inherited from class org.rusherhack.core.event.type.Event

    getPreferredStage, setStage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 processed

      Stage.ON - called before the key is pressed, but only while there is no gui screen open

      Stage.POST - called after the key is processed

      Specified by:
      getStage in interface org.rusherhack.core.event.stage.IStageable
      Overrides:
      getStage in class org.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()