4.7 Keyboard/Gamepad Input Requires Mouse Click

Keyboard/Gamepad functionality does not make it to the InputComponent of either the PlayerController or Pawn until mouse has been pressed. This is happening in a packaged game as well as in the editor.

Was able to temporarily fix it by adding the following code after SetupPlayerInputComponent was called on the Pawn. Not a real fix.

FSlateApplication::Get().SetAllUserFocusToGameViewport();

Hi overlawled,

Sorry for the late response; we’ve been investigating your issue along with a handful of related ones. It is slated to be fixed in the upcoming 4.8 release. As such, if your workaround is working fine for you in the meantime, please continue to use it. For information purposes, here are some other threads that reference the same problem: Second player controller, Gamepad only works when mouse pressed, second player cannot be controlled. Thank you for your patience!