simplified update status method name
This commit is contained in:
parent
33303bbf62
commit
bb5d042db5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user