Sequencer and Setup

Replace Input Map to Enhanced Input 5.1



Create a folder called Input
R click and create Input Mapping context and Player mappable input config (only need this config if it’s VR. For game, just use Mapping Context is enough)
image.png
In input config,
Rename config name as Player, add Context Map element (If in VR that input config is needed, this step is needed too)
image.png
Select the newly created config in OpenXR input, in project settting:
image.png

Add an input action, name as Movement
image.png
Change Value type to Axis 2D (i.e X and Y)
image.png

In mapping context:
Add a mapping, select the Movment Input action created
Add 4 more for WSAD directions
image.png
Unfold all 4 commands and set as follow
(Negat means negative values)
image.png

Go to Character Player BP, Event graph
Movement input command, delete all nodes except 1 Add movement input left and:
image.png
Set the controller to listen for enchanced input
(Either mapping context or mappable config nodes can work)
image.png

For Look, create another input action
add in mapping context:
image.png
image.png
Set Y as Negate because UE default Y axis is inverted
In 3rd person BP, Mouse input/Camera input
image.png
Replace with:
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.