Skip to content

Commit 91bc502

Browse files
committed
Fix bug with multiple buttons pressed in simulator
1 parent 10ebd2a commit 91bc502

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

push2_python/simulator/templates/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,12 @@
360360
buttonsCurrentlyPressed.forEach(function (value) {
361361
socket.emit('buttonReleased', value);
362362
});
363+
buttonsCurrentlyPressed.clear();
363364

364365
padsCurrentlyPressed.forEach(function (value) {
365366
socket.emit('padReleased', value);
366367
});
368+
padsCurrentlyPressed.clear();
367369
}
368370
});
369371

0 commit comments

Comments
 (0)