Skip to content

Commit

Permalink
Update p5.input.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggem authored Sep 22, 2022
1 parent 45f6d7c commit b824b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p5.input.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ window.aKeyPressed = false;
window.isHeld = function(_k) {
return window.keysHeld.includes(_k);
};
window.getKeysHeldAsString = function() {
return keysHeld.join('');
window.getKeysHeldAsString = function(d) {
return keysHeld.join(d);
};
document.addEventListener('keydown', function (e) {
window.theKey = e.key;
Expand Down

0 comments on commit b824b61

Please sign in to comment.