Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
Attention | Topic was automatically imported from the old Question2Answer platform. | |
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
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.")
Reply From: | ibo348 |
not working can you send me sample project?