Class CursorPosEvent

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

public final class CursorPosEvent extends Event
This event is fired when the cursor is being moved. It gets fired in the GLFWCursorPosCallback that is assigned to GLFW.glfwSetCursorPosCallback(long, GLFWCursorPosCallbackI). Cancelling it will cause the internal mouse position to not be updated.
  • Field Details

    • window

      public final long window
    • x

      public double x
    • y

      public double y
  • Constructor Details

    • CursorPosEvent

      public CursorPosEvent(long window, double x, double y)