Basically I just want to filter my inputs so that only InputEventScreenTouch gets through. However, it seems that all the inputs I do gets filtered. See my code below.
Output shows both INPUT OK and INPUT HELD but the underlying button never gets clicked unless I take off the setinputas_handled() line, what am I doing wrong here?
func _input(event):
controlHold = true
if event is InputEventScreenTouch:
#other more complex IF conditions here
controlHold = false
print('input OK')
if controlHold:
get_tree().set_input_as_handled()
print('input held')