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

public static class EventMouse.Key extends EventMouse
This event is called when a mouse button is pressed or released
  • 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 processed

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

      Specified by:
      getStage in interface org.rusherhack.core.event.stage.IStageable
      Overrides:
      getStage in class org.rusherhack.core.event.type.Event