按键映射
1.1打开项目设置—Input
1.2添加轴映射(Axis Mappings)
1.3在自建的Pawn类中写事件函数MoveForward、MoveRight
1.4在代码中绑定映射:PlayerInputComponent->BindAxis(TEXT("MoveForward"), this, &AMyPawn::MoveForward);
PlayerInputComponent->BindAxis(TEXT("MoveRight"), this, &AMyPawn::MoveRight);