So, I want to check for keys pressed. Particullary space key.
How do I do it in _process ?
the only way I found so far is to do this:
func _input(event):
print('Event')
print(event.get_class() == 'InputEventKey') # To check if that's a key press event
print(event.as_text() == 'Space') # to check if that's a space key
Which doesn't work for me. Is there a list of String key codes I can use for :
Input.is_action_just_pressed( ??? )
'space' and "Space" not working.
Thank you!