(key)
| 135 | |
| 136 | |
| 137 | def keyup(key): |
| 138 | global paddle1_vel, paddle2_vel |
| 139 | if key == simplegui.KEY_MAP["down"] or key == simplegui.KEY_MAP["up"]: |
| 140 | paddle1_vel = 0 |
| 141 | if key == simplegui.KEY_MAP["w"] or key == simplegui.KEY_MAP["s"]: |
| 142 | paddle2_vel = 0 |
| 143 | |
| 144 | |
| 145 | frame = simplegui.create_frame("Pong", WIDTH, HEIGHT) |
nothing calls this directly
no outgoing calls
no test coverage detected