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

Function keyUpHandler

assets/js/pingpong.js:131–142  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

129
130// gets activated when we release the key
131function keyUpHandler(event) {
132 switch (event.keyCode) {
133 // "up arraow" key
134 case 38:
135 upArrowPressed = false;
136 break;
137 // "down arrow" key
138 case 40:
139 downArrowPressed = false;
140 break;
141 }
142}
143
144/* moving paddles section end */
145

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected