Interface IMouse.MouseDraggedListener

All Superinterfaces:
EventListener
Enclosing interface:
IMouse
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 IMouse.MouseDraggedListener extends EventListener
This listener interface receives dragged events for the mouse.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when a mouse button is pressed on the game window and then dragged.
  • Method Details

    • mouseDragged

      void mouseDragged(MouseEvent event)
      Invoked when a mouse button is pressed on the game window and then dragged. MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).

      Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.

      Parameters:
      event - The mouse event.