refactored setMouseInput to take Vertex-parameters