Can't control player 2 unless I click in the viewport

Make sure you have it set up correct, go to Edit -> Editor Preferences -> Play (in the Level Editor section) then make sure “Game Gets Mouse Control” is enabled. With option enabled it should not require you to click before playing.