simplified update status method name

This commit is contained in:
e7d 2017-05-14 14:24:47 +02:00
parent 33303bbf62
commit bb5d042db5

View File

@ -280,18 +280,18 @@ class Gamepad {
}
// enqueue the initial display refresh
this.updateVisualStatus();
this.updateStatus();
});
}
updateVisualStatus() {
updateStatus() {
// ensure that a gamepad is currently active
if (!this.activeGamepad) {
return;
}
// enqueue the next refresh right away
this.rAF(this.updateVisualStatus.bind(this));
this.rAF(this.updateStatus.bind(this));
// load latest gamepad data
this.refreshGamepads();