A man accused of murdering his brother-in-law and attempting to murder three others during a shooting spree on Skye was “fully in control” of his actions, a jury has been told.