Interface ScreenMouseEvents.BeforeMouseDrag

Enclosing class:
ScreenMouseEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ScreenMouseEvents.BeforeMouseDrag
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeMouseDrag(Screen screen, double mouseX, double mouseY, int button, double horizontalAmount, double verticalAmount)
    Called before a mouse is dragged on screen.
  • Method Details

    • beforeMouseDrag

      void beforeMouseDrag(Screen screen, double mouseX, double mouseY, int button, double horizontalAmount, double verticalAmount)
      Called before a mouse is dragged on screen.
      Parameters:
      screen - the screen
      mouseX - the x position of the mouse
      mouseY - the y position of the mouse
      button - the button number, which can be identified by the constants in GLFW
      horizontalAmount - the horizontal drag amount
      verticalAmount - the vertical drag amount
      See Also:
      • GLFW.GLFW_MOUSE_BUTTON_1