Maker: Alias accelerometer tap events #13061
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The recent playground-io upgrade introduces
tap:single
andtap:double
events for the accelerometer. This change allows students to refer to these events assingleTap
anddoubleTap
, and adds those events to theonBoardEvent
second parameter dropdown. (spec)I considered doing this aliasing in a wrapper around the
Accelerometer
controller, but there seems to be enough trouble with initialization and resets that this broke some behaviors. I think it's cleaner for now to just alias at theonBoardEvent
level and revisit this if/when we manage to simplify the run/reset process.