MouseInputEvent
-
class
Event.MouseInputEvent()
Constructors
-
Event.MouseInputEvent.constructor() - MouseInputEvent(positionX: number, positionY: number, button:
Button, buttons:Buttons, modifiers:KeyModifiers, inputType:MouseInputType, viewKey:ViewKey):MouseInputEventMouse Event class
Parameters
positionX: number
X window position of the mousepositionY: number
Y window position of the mousebutton:
Buttonmouse button associated with this eventbuttons:
Buttonsmouse buttons currently pressed with this eventmodifiers:
KeyModifiersbitwise collection of values from KeyModifiers enuminputType:
MouseInputTypethe type of the eventviewKey:
ViewKeyReturns:
MouseInputEvent
Accessors
Methods
-
Event.MouseInputEvent.altDown() inherited
altDown(): booleangets the state of the alt key
Returns: boolean
whether the alt key was down when this event was generated
-
Event.MouseInputEvent.commandDown() inherited
commandDown(): booleangets the state of the command key
Returns: boolean
whether the command key was down when this event was generated
-
Event.MouseInputEvent.controlDown() inherited
controlDown(): booleangets the state of the control key
Returns: boolean
whether the control key was down when this event was generated
-
Event.MouseInputEvent.getButton() - getButton():
Buttongets the mouse button associated with this event
Returns:
Buttonthe mouse button for this event
-
Event.MouseInputEvent.getButtons() - getButtons():
Buttonsgets the mouse buttons currently pressed with this event
Returns:
Buttonsthe mouse buttons currently pressed for this event
-
Event.MouseInputEvent.getDate() inherited
getDate(): DateGets the Date this event occurred
Returns: Date
the event Date
-
Event.MouseInputEvent.getEventType() inherited
getEventType():MouseInputTypegets the event type
Returns:
MouseInputTypethe type of mouse event
-
Event.MouseInputEvent.getHandled() inherited
getHandled(): booleanGets the handled state of the event
Returns: boolean
whether the event has been handled
-
Event.MouseInputEvent.getModifiers() inherited
getModifiers():KeyModifiersgets the event modifiers
Returns:
KeyModifiersbitwise combination of KeyModifiers
-
Event.MouseInputEvent.getPosition() inherited
getPosition():Point2gets the window position of the mouse pointer for this event
Returns:
Point2the mouse position for this event
-
Event.MouseInputEvent.setHandled() inherited
setHandled(handled: boolean): voidSets the handled state of the event. When an event has been handled it will not propagate any further
Parameters
handled: boolean
Indicates whether this event has been handled.Returns: void
-
Event.MouseInputEvent.shiftDown() inherited
shiftDown(): booleangets the state of the shift key
Returns: boolean
whether the shift key was down when this event was generated