Mouse "Click UP"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ibo348

if (event.type == InputEvent.MOUSE_BUTTON && event.pressed):
print(“Click Down”)

but i want to click up

how can I do it

enter image description here

:bust_in_silhouette: Reply From: avencherus

Do you mean released?

It should just be not event.pressed.

func _input(e):
	if(e.type == InputEvent.MOUSE_BUTTON 
		and e.button_index == BUTTON_LEFT and not e.pressed):
		print("Released Left Button.")
:bust_in_silhouette: Reply From: ibo348

not working can you send me sample project?