Class MouseMotionEvent

java.lang.Object
com.jme3.input.event.InputEvent
com.jme3.input.event.MouseMotionEvent

public class MouseMotionEvent extends InputEvent
Mouse movement event.

Movement events are only generated if the mouse is on-screen.

  • Constructor Details

    • MouseMotionEvent

      public MouseMotionEvent(int x, int y, int dx, int dy, int wheel, int deltaWheel)
  • Method Details

    • getDeltaWheel

      public int getDeltaWheel()
      The change in wheel rotation.
      Returns:
      change in wheel rotation.
    • getDX

      public int getDX()
      The change in X coordinate
      Returns:
      change in X coordinate
    • getDY

      public int getDY()
      The change in Y coordinate
      Returns:
      change in Y coordinate
    • getWheel

      public int getWheel()
      Current mouse wheel value
      Returns:
      Current mouse wheel value
    • getX

      public int getX()
      Current X coordinate
      Returns:
      Current X coordinate
    • getY

      public int getY()
      Current Y coordinate
      Returns:
      Current Y coordinate
    • toString

      public String toString()
      Overrides:
      toString in class Object