How to set defauljoystick in cpp ( mobile game)

nightmare_unreal
Tue, 23 Mar 2021 18:30:01 +0000
Mobile

Hello guys I am trying to setup input for my game. I have W,A,S,D which are working fine but I want to use touch (default joystick that unreal provides when we make mobile game)

How to setup that ?
Current code :

Super::SetupPlayerInputComponent(PlayerInputComponent);
PlayerInputComponent->BindAxis("MoveForward", this, &APawnTank::CalculateMoveInput);
PlayerInputComponent->BindAxis("Turn", this, &APawnTank::CalculateRotateInput);
PlayerInputComponent->BindAction("Fire", IE_Pressed, this, &APawnTank::Fire);

Project settings

controls

1 post - 1 participant