MCPcopy Create free account
hub / github.com/ICE27182/Python-3D-renderer / take_key

Function take_key

control.py:2–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import threading, msvcrt
2def take_key():
3 global key_GL, command_mode_GL
4 while True:
5 if not command_mode_GL:
6 key_GL = msvcrt.getwch()
7 if key_GL == "Q":
8 break
9 elif key_GL == "/":
10 command_mode_GL = True
11
12global key_GL, command_mode_GL
13key_GL, command_mode_GL = None, False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected