March 2019
Intermediate to advanced
708 pages
17h 9m
English
You need a UE4 project that you'd like to add some Axis and Action mappings to. You can delete the existing Axis and Action mappings listed in Settings | Project Settings | Input if you are adding them via C++ code.
To add your custom Axis and Action Mappings, there are two C++ functions that you need to know about: UPlayerInput::AddAxisMapping and UPlayerInput:: AddActionMapping. These are member functions that are available on the UPlayerInput object. The UPlayerInput object is inside the PlayerController object, and is accessible via the following code:
GetWorld()->GetFirstPlayerController()->PlayerInput
You can also use the two static member functions of UPlayerInput to create your Axis and Action Mappings if you'd prefer ...
Read now
Unlock full access