Use setChangedState for touch and color sensors

This commit is contained in:
Sam El-Husseini
2017-12-19 17:01:45 -08:00
parent a7d002d949
commit d3dcb5de85
3 changed files with 10 additions and 6 deletions

View File

@ -14,8 +14,7 @@ namespace pxsim {
public setPressed(pressed: boolean) {
this.pressed.push(pressed);
this.changed = true;
this.valueChanged = true;
this.setChangedState();
}
public isPressed() {