-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of timer in scenery #884
Comments
Pinging @jonathanolson for comment again, because this issue informs how we proceed with implementing a keystate tracker in #850. It also may inform our ability to move |
Could things just be tied in to when Display.updateDisplay() is potentially called? |
We thought about that. Could updateDisplay take an optional |
Definitely. |
Part of this was done in #909 so we could step the Display's KeyStateTracker. updateDisplay now takes an optional dt for this. The next step is to review other usages of timer added for a11y. KeyStateTracker global could be stepped in updateDisplay but I am not sure how timers used in individual listeners will change yet. This applies to KeyboardDragListener (which we hope to move to scenery) and PressListener. |
…updateDisplay, fix bug when interrupting PressListener from a11y input, see #884
In support of #931, @zepumph and I looked into this again with help from @samreid. Since we last looked into this timer was moved to axon for other reasons (phetsims/phet-core#51). This makes it more accessible in scenery. In the above commits we removed the Remaining tasks are to add documentation somewhere that describes this requirement, and to do a final review of Display.updateDisplay() usages to see if we need to add any more |
All the other usages are in tests and I don't believe they require this. Scenery unit tests are passing. |
The best place I could think of for this documentation is scenery/doc/user-input, but maybe there is a better spot. Added in the above commit. @jonathanolson can you please take a look at the change to Display.updateDisplay and Display.updateOnRequestAnimationFrame in 4f0bb50. And can you think of a better place for the documentation in 013b758? |
…lickingTimeoutListener, see #884
I think all that is left for this issue is for @jonathanolson to review per #884 (comment). Unassigning. |
This seems like a good approach, documentation and implementation look good. Thanks! |
A11y folks are using PHET_CORE's timer in scenery. This doesn't seem to be supported outside of phet though. @jonathanolson is there a way that we could have that timer support not in phet sims? Alternatively we would abandon this use. @jonathanolson what do you think. Current usages are in PressListener, KeyboardFuzzer, and KeyStateTracker (actively worked on as part of #850).
The text was updated successfully, but these errors were encountered: