MouseWheelInputEvent
- class Communicator.Event.MouseWheelInputEvent()
Methods
Methods
altDown
- MouseWheelInputEvent.altDown()
gets the state of the alt key
- Return type
boolean
- Returns
whether the alt key was down when this event was generated
commandDown
- MouseWheelInputEvent.commandDown()
gets the state of the command key
- Return type
boolean
- Returns
whether the command key was down when this event was generated
controlDown
- MouseWheelInputEvent.controlDown()
gets the state of the control key
- Return type
boolean
- Returns
whether the control key was down when this event was generated
getButtons
getDate
- MouseWheelInputEvent.getDate()
Gets the Date this event occurred
- Return type
Date
- Returns
the event Date
getEventType
- MouseWheelInputEvent.getEventType()
gets the event type
- Return type
- Returns
the type of mouse event
getHandled
- MouseWheelInputEvent.getHandled()
Gets the handled state of the event
- Return type
boolean
- Returns
whether the event has been handled
getModifiers
- MouseWheelInputEvent.getModifiers()
gets the event modifiers
- Return type
- Returns
bitwise combination of KeyModifiers
getPosition
getWheelDelta
- MouseWheelInputEvent.getWheelDelta()
Gets the wheel delta for this event. A positive value indicates that the wheel was scrolled Up, while a negative value indicated the wheel was scrolled down.
- Return type
number
- Returns
Wheel dela value
setHandled
- MouseWheelInputEvent.setHandled(handled)
Sets the handled state of the event. When an event has been handled it will not propagate any further
- Arguments
handled (
boolean()
) – Indicates whether this event has been handled.
- Return type
void
shiftDown
- MouseWheelInputEvent.shiftDown()
gets the state of the shift key
- Return type
boolean
- Returns
whether the shift key was down when this event was generated