Inputs / BindAction not working

Hi
Please make sure that:

  • make sure void Build(); is declared as a public method in PlayerControllerRTS.h
  • In your Project settings > Input please make sure that under Action mappings you have added a mapping called Forward
  • Make sure that your InputComponent class hasn’t been subclassed and you are using the wrong Input component class.
  • Add EnableInput(this) somewhere before if (InputComponent) in APlayerControllerRTS::SetupInputComponent() (you shouldnt need this but to be extra safe)
  • If you are still having issues here is some sample code that is tested working on 4.25 for binding input to custom player controllers:
    – Header : Unreal-cpp-boilerplate/CustomPlayerController.h at master · tanerius/Unreal-cpp-boilerplate · GitHub
    – and implementation https://github.com/tanerius/Unreal-cpp-
    boilerplate/blob/master/Source/CustomTemplate/CustomPlayerController.cpp

I hope this helps.