MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / keyUp

Function keyUp

assets/js/carAvoidanceGame.js:13–16  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

11 keys[e.key]=true;
12}
13function keyUp(e){
14 e.preventDefault();
15 keys[e.key]=false;
16}
17function isCollide(a,b){
18 aRect=a.getBoundingClientRect();
19 bRect=b.getBoundingClientRect();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected