Skip to content

Commit a038a35

Browse files
committed
Fixed sticky keys
There were sticky keys for the joystick
1 parent b7408f6 commit a038a35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/joystick_wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ class Joystick{
163163
this.updateStatus();
164164
const sending = this.getChangedBytes(this.joysticksArray, this.lastsentArray);
165165
if(sending[1] > 0){
166-
await this.writeToDevice(sending); //(JSON.stringify(this.joysticks) + '\r');
166+
this.lastsentArray = this.joysticksArray.slice();
167+
await this.writeToDevice(sending);
167168
}
168-
this.lastsentArray = this.joysticksArray.slice();
169169
this.sendingPacket = false;
170170
}
171171
}

0 commit comments

Comments
 (0)