fix key listening again

This commit is contained in:
2025-07-20 02:48:16 +10:00
parent 524920d140
commit 758f2ca885
3 changed files with 19 additions and 21 deletions

View File

@@ -138,13 +138,10 @@ func _on_bounce_gravity_value_changed(value):
func costumeButtonsPressed(label,id):
label.text = "AWAITING INPUT"
await Global.main.emptiedCapture
awaitingCostumeInput = id - 1
await Global.main.pressedKey
label.text = "costume " + str(id) + " key: \"" + Global.main.costumeKeys[id - 1] + "\""
await Global.main.emptiedCapture
awaitingCostumeInput = -1
func _on_costume_button_1_pressed():