Package com.simsilica.lemur.event
Class CursorMotionEvent
java.lang.Object
com.simsilica.lemur.event.AbstractCursorEvent
com.simsilica.lemur.event.CursorMotionEvent
Contains information about a motion event over a particular
spatial.
-
Constructor Summary
ConstructorsConstructorDescriptionCursorMotionEvent
(ViewPort view, Spatial target, float x, float y, int scroll, int scrollDelta, CollisionResult collision) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the amount the scroll wheel moved during this mouse motion.int
Returns the full value of the 'scroll wheel' or scroll control at the time of this motion event.Methods inherited from class com.simsilica.lemur.event.AbstractCursorEvent
getCollision, getLocation, getRelativeViewCoordinates, getTarget, getViewPort, getX, getY, isConsumed, parmsToString, setConsumed, toString
-
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.
-