How to make an event unique when passing signal to subviewport? Godot 3.0

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By stubbsy345
:warning: Old Version Published before Godot 3 was released.

I currently have a viewport within my 2D screen containing a mini game. I am passing the input from my root viewport to my subviewport as follows:

func _input(event):
if event is InputEventMouse:
	var ev = event
	ev.position -= Vector2(150, 108)
	viewport.input(ev)
else:
	viewport.input(event)

This works great except for the fact that i also have buttons in the root viewport that I need to interact with and changing the of my ev variable seems to through the event input off for the root viewport as well. Is there a way to separate the two then one doesn’t affect the other?