apk
This commit is contained in:
parent
0be321179e
commit
b690c1720f
|
@ -0,0 +1,16 @@
|
||||||
|
import keyboard
|
||||||
|
|
||||||
|
def main():
|
||||||
|
print("Press keys on your keyboard to see their mapping. Press 'q' to quit.")
|
||||||
|
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
event = keyboard.read_event()
|
||||||
|
if event.event_type == keyboard.KEY_DOWN:
|
||||||
|
print(f"Key: {event.name}, Character: {event.scan_code}")
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print("\nExiting...")
|
||||||
|
break
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
Loading…
Reference in New Issue