The following function can replace update_when('key_pressed') from the old gasp:
def update_when_key_pressed():
keys = keys_pressed()
while len(keys) == 0:
keys = keys_pressed()
return list(keys)[0]
Please add this to the new gasp.
The following function can replace update_when('key_pressed') from the old gasp:
def update_when_key_pressed():
keys = keys_pressed()
while len(keys) == 0:
keys = keys_pressed()
return list(keys)[0]
Please add this to the new gasp.