We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f6d7c commit b824b61Copy full SHA for b824b61
1 file changed
p5.input.js
@@ -15,8 +15,8 @@ window.aKeyPressed = false;
15
window.isHeld = function(_k) {
16
return window.keysHeld.includes(_k);
17
};
18
-window.getKeysHeldAsString = function() {
19
- return keysHeld.join('');
+window.getKeysHeldAsString = function(d) {
+ return keysHeld.join(d);
20
21
document.addEventListener('keydown', function (e) {
22
window.theKey = e.key;
0 commit comments