MouseInputEvent
- class Communicator.Event.MouseInputEvent()
 
Constructors
Methods
Constructors
- MouseInputEvent.constructor(positionX, positionY, button, buttons, modifiers, inputType)
 Mouse Event class
- Arguments
 positionX (
number()) –positionY (
number()) –button (Button) –
buttons (Buttons) –
modifiers (KeyModifiers) –
inputType (MouseInputType) –
- Return type
 
Methods
altDown
- MouseInputEvent.altDown()
 gets the state of the alt key
- Return type
 boolean
- Returns
 whether the alt key was down when this event was generated
commandDown
- MouseInputEvent.commandDown()
 gets the state of the command key
- Return type
 boolean
- Returns
 whether the command key was down when this event was generated
controlDown
- MouseInputEvent.controlDown()
 gets the state of the control key
- Return type
 boolean
- Returns
 whether the control key was down when this event was generated
getButton
getButtons
getDate
- MouseInputEvent.getDate()
 Gets the Date this event occurred
- Return type
 Date
- Returns
 the event Date
getEventType
- MouseInputEvent.getEventType()
 gets the event type
- Return type
 - Returns
 the type of mouse event
getHandled
- MouseInputEvent.getHandled()
 Gets the handled state of the event
- Return type
 boolean
- Returns
 whether the event has been handled
getModifiers
- MouseInputEvent.getModifiers()
 gets the event modifiers
- Return type
 - Returns
 bitwise combination of KeyModifiers
getPosition
setHandled
- MouseInputEvent.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
- MouseInputEvent.shiftDown()
 gets the state of the shift key
- Return type
 boolean
- Returns
 whether the shift key was down when this event was generated