godot3 mouse position

in godot3 •  7 years ago 
func _input(e):
    if (e is InputEventMouseButton
    and e.button_index == BUTTON_LEFT and not e.pressed):
        print("Mouse Click/Unclick at: ", e.position, 'g: ',get_viewport().get_mouse_position())
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!