Export project Godot 2 to Godot 3 (again complexity)

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

I export the project Godot 2 to Godot 3. I have encountered a number of difficulties and are unable to find the answers. Help please.

  1. To detect mouse movement (first-person control) I used the following code:
    func _input(event):
	if event.type==InputEvent.MOUSE_MOTION:

It doesn’t work in Godot 3 and I can’t find an equivalent solution.

  1. To retrieve the screen shot I used the call: get_viewport().get_screen_capture (). But it doesn’t work the same. I don’t find his analogue.
:bust_in_silhouette: Reply From: mollusca

1: Something like:

if event is InputEventMouseMotion:
    #relative motion is a Vector2

2: Check the screen capture demo project