DownUpListener¶
Overview¶
Basic down/up pointer handling for a Node, so that it's easy to handle buttons
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class DownUpListener¶
@deprecated - use PressListener instead
Constructor¶
new DownUpListener( options )¶
Instance Methods¶
buttonDown( event )¶
@param {SceneryEvent} event
buttonUp( event )¶
@param {SceneryEvent} event
interrupt()¶
Called when input is interrupted on this listener, see https://github.com/phetsims/scenery/issues/218 @public
Source Code¶
See the source for DownUpListener.js in the scenery repository.