public final class EventScroll extends Event
In fact, this event is related with mouse buttons 4 to 7. In most cases, buttons 4 and 5 are mapped to the mouse wheel.
Modifier and Type | Method and Description |
---|---|
ScrollDirection |
getDirection()
Get the direction of the scroll.
|
ModifierType |
getState()
Get the state of the modifier keys.
|
public ScrollDirection getDirection()
public ModifierType getState()
NONE
if no modifiers are being held down. See
EventKey's getState()
and
ModifierType
for usage details.