MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / areDownKeys

Function areDownKeys

libraries/p5.js:18570–18577  ·  view source on GitHub ↗

* The checkDownKeys function returns a boolean true if any keys pressed * and a false if no keys are currently pressed. * Helps avoid instances where a multiple keys are pressed simultaneously and * releasing a single key will then switch the * keyIsPressed property to true. * @private

()

Source from the content-addressed store, hash-verified

18568 * @private
18569**/
18570function areDownKeys() {
18571 for (var key in downKeys) {
18572 if (downKeys.hasOwnProperty(key) && downKeys[key] === true) {
18573 return true;
18574 }
18575 }
18576 return false;
18577}
18578
18579module.exports = p5;
18580

Callers 1

p5.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected