Package playn.core
Class Mouse.WheelEvent
java.lang.Object
playn.core.Event
playn.core.Event.Input
playn.core.Event.XY
playn.core.Mouse.Event
playn.core.Mouse.WheelEvent
- All Implemented Interfaces:
XY
- Enclosing class:
Mouse
An event dispatched when the mouse wheel is scrolled.
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.Event
Event.Input, Event.XY
-
Field Summary
FieldsFields inherited from class playn.core.Event.Input
flags, time
Fields inherited from class playn.core.Event
F_PREVENT_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class playn.core.Event.Input
clearFlag, isAltDown, isCtrlDown, isMetaDown, isSet, isShiftDown, modifierFlags, setFlag, toString, updateFlag
-
Field Details
-
velocity
public final float velocityThe velocity of the scroll wheel. Negative velocity corresponds to scrolling north/up. Each scroll 'click' is 1 velocity.
-
-
Constructor Details
-
WheelEvent
public WheelEvent(int flags, double time, float x, float y, float velocity)
-