Set viewport mouse capture mode. In the PlayerController I set the input mode to … .