Skip to content

Commit

Permalink
SelfVoicingInputListener -> VoicingInputListener, see phetsims/tasks#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 24, 2021
1 parent 9cbd391 commit f82bb16
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions js/tracking/SaveTestEventsButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import merge from '../../../phet-core/js/merge.js';
import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/levelSpeakerModel.js';
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import VoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/VoicingInputListener.js';
import PhetFont from '../../../scenery-phet/js/PhetFont.js';
import RectangularPushButton from '../../../sun/js/buttons/RectangularPushButton.js';
import tappi from '../tappi.js';
Expand Down Expand Up @@ -56,7 +56,7 @@ class SaveTestEventsButton extends RectangularPushButton {
super( options );

// register for self-voicing output
this.addInputListener( new SelfVoicingInputListener( {
this.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
const response = levelSpeakerModel.collectResponses( BUTTON_OBJECT_RESPONSE );
phet.joist.sim.voicingUtteranceQueue.addToBack( response );
Expand Down
8 changes: 4 additions & 4 deletions js/view/CustomGestureIntroDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Range from '../../../dot/js/Range.js';
import Utils from '../../../dot/js/Utils.js';
import merge from '../../../phet-core/js/merge.js';
import StringUtils from '../../../phetcommon/js/util/StringUtils.js';
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import VoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/VoicingInputListener.js';
import SelfVoicingWrapperNode from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingWrapperNode.js';
import PhetFont from '../../../scenery-phet/js/PhetFont.js';
import sceneryPhet from '../../../scenery-phet/js/sceneryPhet.js';
Expand Down Expand Up @@ -120,19 +120,19 @@ class CustomGestureIntroDialog extends Dialog {
this.selfVoicingWrapper = selfVoicingWrapper;

// listeners that provide actual self-voicing content on the example components
exampleButton.addInputListener( new SelfVoicingInputListener( {
exampleButton.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
phet.joist.sim.voicingUtteranceQueue.addToBack( testButtonContent );
}
} ) );

exampleSlider.addInputListener( new SelfVoicingInputListener( {
exampleSlider.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
phet.joist.sim.voicingUtteranceQueue.addToBack( sliderLabelString );
}
} ) );

continueButton.addInputListener( new SelfVoicingInputListener( {
continueButton.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
phet.joist.sim.voicingUtteranceQueue.addToBack( continueButtonContent );
}
Expand Down
4 changes: 2 additions & 2 deletions js/view/GestureControlledSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import merge from '../../../phet-core/js/merge.js';
import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/levelSpeakerModel.js';
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import VoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/VoicingInputListener.js';
import sceneryPhetStrings from '../../../scenery-phet/js/sceneryPhetStrings.js';
import Slider from '../../../sun/js/Slider.js';
import VoicingUtterance from '../../../utterance-queue/js/VoicingUtterance.js';
Expand Down Expand Up @@ -65,7 +65,7 @@ class GestureControlledSlider extends Slider {
this.initializeValueGestureControl( this, options );

// on focus, speak the label of this component
this.addInputListener( new SelfVoicingInputListener( {
this.addInputListener( new VoicingInputListener( {
onFocusIn: () => {
const objectContent = options.selfVoicingLabel;

Expand Down

0 comments on commit f82bb16

Please sign in to comment.