funnymemellama/KeyOverlay.gd
Quantum dabd5253ad New debugging stuff
Made player "ball" smaller and closer
Added key overlay
Added F1 to toggle "Mapentities"
2023-09-27 22:40:16 -04:00

15 lines
269 B
GDScript

extends Label
var keys = []
func _input(event):
if event is InputEventKey:
var key = OS.get_keycode_string(event.key_label)
if event.pressed:
if not keys.has(key):
keys.append(key)
else:
if keys.has(key):
keys.erase(key)
text = ' '.join(keys)