Hello Forum,
I have a class (Blueprint) with the name PLAYER, and the parent class is ‘Default Pawn’. In its event ‘BeginPlay’, I enable enhanced input with the function ‘Add Mapping Context’. The class has a camera and user input is used to move. This works fine.
I have another class (Blueprint) with the name CONTROLER, and the parent class is ‘PlayerController’. In this class I DON’T enable enhanced input.
PLAYER is the default pawn class (in project settings).
CONTROLLER is player controller class (in project settings).
I tried using an enhanced input action in the CONTROLLER class, and it works. Does this mean that you only have to call ‘Add Mapping Context’ once in a blueprint, and it works in all other blueprints?
Next step, I removed ‘Add Mapping Context’ from PLAYER, and added it to the event ‘BeginPlay’ from CONTROLLER. Everything still worked.
I got the code from tutorials, but doesn’t it make more sense to put ‘Add Mapping Context’ in the CONTROLLER class? Or am I missing something?
Thanks,

