Interface ScreenMouseEvents.AllowMouseDrag

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.AllowMouseDrag
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowMouseDrag(Screen screen, double mouseX, double mouseY, int button, double horizontalAmount, double verticalAmount)
    Checks if the mouse should be allowed to drag in a screen by moving the cursor while a mouse button is held down.
  • Method Details

    • allowMouseDrag

      boolean allowMouseDrag(Screen screen, double mouseX, double mouseY, int button, double horizontalAmount, double verticalAmount)
      Checks if the mouse should be allowed to drag in a screen by moving the cursor while a mouse button is held down.
      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
      Returns:
      whether the mouse should be allowed to drag
      See Also:
      • GLFW.GLFW_MOUSE_BUTTON_1