Class CursorMotionEvent

java.lang.Object
com.simsilica.lemur.event.AbstractCursorEvent
com.simsilica.lemur.event.CursorMotionEvent

public class CursorMotionEvent extends AbstractCursorEvent
Contains information about a motion event over a particular spatial.
  • Constructor Details

    • CursorMotionEvent

      public CursorMotionEvent(ViewPort view, Spatial target, float x, float y, int scroll, int scrollDelta, CollisionResult collision)
  • Method Details

    • getScrollValue

      public int getScrollValue()
      Returns the full value of the 'scroll wheel' or scroll control at the time of this motion event.
    • getScrollDelta

      public int getScrollDelta()
      Returns the amount the scroll wheel moved during this mouse motion.