Skip to content

WASDCueNode

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/accessibility/nodes/WASDCueNode.ts for the most up-to-date information.

Overview

A node that provides an interaction cue for dragging (originally for the balloon in Balloons and Static Electricity). Includes arrow and letter keys to indicate that the user can use WASD or arrow keys to move the object around the play area. Provide the boundsProperty for the object for automatic resizing around the object.

@author Jesse Greenberg @author Michael Kauzmann (PhET Interactive Simulations)

Class WASDCueNode

import { WASDCueNode } from 'scenerystack/scenery-phet';

Constructor

new WASDCueNode( boundsProperty : TReadOnlyProperty<Bounds2> )

Instance Methods

Instance Properties

wNode : Node

(protected, readonly)

aNode : Node

(protected, readonly)

sNode : Node

(protected, readonly)

dNode : Node

(protected, readonly)

Source Code

See the source for WASDCueNode.ts in the scenery-phet repository.