Skip to content

SoundKeyboardDragListener

Overview

SoundKeyboardDragListener extends KeyboardDragListener 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 SoundKeyboardDragListener

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

Constructor

new SoundKeyboardDragListener( providedOptions : SoundKeyboardDragListenerOptions )

Instance Methods

Type SoundKeyboardDragListenerOptions

import type { SoundKeyboardDragListenerOptions } from 'scenerystack/scenery-phet';

KeyboardDragListenerOptions & RichDragListenerSoundOptions

Source Code

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