Class MouseEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.MouseEvent

public final class MouseEvent extends Event
This event is fired when a mouse button is held down or pressed. It is fired in the GLFWMouseButtonCallback that is assigned to GLFW.glfwSetMouseButtonCallback(long, GLFWMouseButtonCallbackI). Cancelling it will make the moues input not be processed.
  • Field Details

    • window

      public final long window
    • mods

      public final int mods
    • action

      public int action
    • button

      public int button
  • Constructor Details

    • MouseEvent

      public MouseEvent(long window, int mods, int action, int button)