Persist selected state of controls across simulator restarts

This commit is contained in:
Sam El-Husseini
2017-12-28 11:17:18 -08:00
parent d7f46c0fb5
commit f30eac41e9
7 changed files with 43 additions and 10 deletions

View File

@ -10,6 +10,7 @@ namespace pxsim.visuals {
}
updateState() {
super.updateState();
const motorState = ev3board().getMotors()[this.port];
if (!motorState) return;
const speed = motorState.getSpeed();