March 2019
Intermediate to advanced
708 pages
17h 9m
English
The UE4 Engine allows wire-up input events directly to C++ function calls. The functions that are called by an input event are member functions of some class. In the preceding example, we routed both the pressing of the W key and holding of the gamepad's Left Thumbstick Up to the AWarrior::Forward C++ function. The instance to call AWarrior::Forward on is the instance that routed the controller's input. That is controlled by the object set as the player's avatar in the GameMode class.
Read now
Unlock full access