

Each function assigned to one of these attributes requires a argument. Node also provides onKeyPressed, onKeyReleased, and onKeyTyped attributes for responding to key events. public isShiftDown(): Boolean returns true if the Shift modifier key is down.Because popup menus are triggered differently on different systems, isPopupTrigger() should be invoked in functions assigned to both of a node's onMousePressed and onMouseReleased attributes to ensure proper cross-platform behavior. public isPopupTrigger(): Boolean returns true if this mouse event is the popup menu trigger event for the platform.public isMetaDown(): Boolean returns true if the Meta modifier key is down.public isControlDown(): Boolean returns true if the Control modifier key is down.public isAltDown(): Boolean returns true if the Alt modifier key is down.public getY(): Number returns the mouse cursor's horizontal Y position relative to this node's origin.public getX(): Number returns the mouse cursor's horizontal X position relative to this node's origin.public getWheelRotation(): Number returns the number of "clicks" the mouse wheel has rotated.



public getClickCount(): Integer returns the number of mouse clicks associated with this event.public getButton(): Integer returns an indication of which (if any) buttons have changed state.This class provides the functions below for ascertaining various kinds of information about the event: Responding to input eventsĪs you saw in the above listing, Node offers onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, and onMouseReleased attributes for responding to mouse events. Although you can populate this sequence with objects created directly from, , and other subclasses of the abstract Transform class, the convention is to obtain these objects from Transform functions such as public static rotate(angle: Number, x: Number, y: Number): Rotate. This attribute, of type, lets you chain together a sequence of transformations that are applied to the node. Node provides a transform attribute as an alternative to rotate, scaleX, scaleY, shearX, shearY, translateX, and translateY.
