Issues with 3rd Person Power-Up Game -tutorial (v4.11)

Hi

I’ve started to learn UE by going through “3rd Person Power-Up Game with C++ (v4.9)” video tutorial (A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums) and had no problems until I went to test my ‘game’ after completing the chapter 10.

I had just finished the implementation for the ‘collecting batteries’ (in c++) and when I tested nothing I’ve put into ABatteryCollectorCharacter::SetupPlayerInputComponent -function gets executed and when I started to debug, for surprise I found out from the ABatteryCollectorGameMode.cpp that ABatteryCollectorCharacter -class is not used at all for the movement and there was some blueprint defined to take care of it instead. This was done by the editor/templates when project was created, even I chose c++ project instead of blueprints…

Anyway, the question is what needs to be set up in the ABatteryCollectorGameMode -constructor, in order to use C++ version of player character/movement. So far I’m able to set default pawn class in using:
DefaultPawnClass = ABatteryCollectorCharacter::StaticClass();

… but I still when I run the game in the editor, SetupPlayerInputComponent function doesn’t get called and that mapped input action “Collect” doesn’t come in.

Any help would be appreciated.