SoundDragListener¶
Overview¶
SoundDragListener extends DragListener to integrate PhET-specific sounds for grab and release.
For grab and release sounds, responsibilities include: - provide default sound files - create SoundClips and register them with soundManager - dispose of SoundClips and deregister them with soundManager
@author AgustÃn Vallejo @author Michael Kauzmann @author Chris Malley (PixelZoom, Inc.) @author Jesse Greenberg
Class SoundDragListener¶
Constructor¶
new SoundDragListener( providedOptions : SoundDragListenerOptions )¶
Instance Methods¶
Type PressedSoundDragListener¶
Pattern followed from DragListenerOptions.
SoundDragListener & PressedDragListener
Type SoundDragListenerOptions¶
DragListenerOptions<Listener> & RichDragListenerSoundOptions
Source Code¶
See the source for SoundDragListener.ts in the scenery-phet repository.