# Cant solve issue with enhanced in put component.

**URL:** <https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [June 12, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155 "2023-06-12T17:31:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HYPER\_NOOB\_21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HYPER\_NOOB\_21](https://forums.unrealengine.com/u/HYPER_NOOB_21)\
**Post date:** [June 12, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155/1 "2023-06-12T17:31:59Z")

</div>

Im having an issue with my section for binding inputs in Unreal Engine 5.2  
This is the code:

```auto
void AMyFpsController::SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent)
{
	// Set up action bindings
	if (UEnhancedInputComponent* EnhancedInputComponent = CastChecked<UEnhancedInputComponent>(PlayerInputComponent))
	{
		//Jumping
		EnhancedInputComponent->BindAction(Forward, ETriggerEvent::Triggered, this, &AMyFpsController::MoveForward);
	}
}

```

This the error I’m getting.

```auto
  C:\Users\louis\proj\unreal\learningUnreal\Source\learningUnreal\MyFpsController.cpp(35): error C2664: 'FEnhancedInputActionEventBinding &UEnhancedInputComponent::BindAction(const UInputAction *,ETriggerEvent,UObject *,FName)': cannot convert argument 1 from 'overloaded-function' to 'const UInputAction *'
  C:\Users\louis\proj\unreal\learningUnreal\Source\learningUnreal\MyFpsController.cpp(35): note: Context does not allow for disambiguation of overloaded function
  C:\Users\louis\ue_installs\UE_5.2\Engine\Plugins\EnhancedInput\Source\EnhancedInput\Public\EnhancedInputComponent.h(436): note: see declaration of 'UEnhancedInputComponent::BindAction'

```

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [June 12, 2023, 9:25pm UTC](https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155/2 "2023-06-12T21:25:42Z")

</div>

Do you have a function called “Forward”?  
Change its name!!

---

<div class="post-metadata">

**Author:** ![HYPER\_NOOB\_21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HYPER\_NOOB\_21](https://forums.unrealengine.com/u/HYPER_NOOB_21)\
**Post date:** [June 13, 2023, 3:35pm UTC](https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155/3 "2023-06-13T15:35:13Z")

</div>

Thanks that worked. Do you happen to know how to fix this

```auto
	EnhancedInputComponent->BindAction(MoveForward, ETriggerEvent::Triggered, this, &AMyFpsController::MoveForward);

```

```auto
  C:\Users\louis\proj\unreal\learningUnreal\Source\learningUnreal\MyFpsController.cpp(35): error C3867: 'AMyFpsController::MoveForward': non-standard syntax; use '&' to create a pointer to member

```

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [June 13, 2023, 4:10pm UTC](https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155/4 "2023-06-13T16:10:53Z")

</div>

I think it’s the same error as before.  
Do not put the same name to two different things.

> [@HYPER\_NOOB\_21](#):
>
> `	EnhancedInputComponent->BindAction(--> MoveForward <-- , ETriggerEvent::Triggered, this, &AMyFpsController:: --> MoveForward <-- );`

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 13, 2023, 4:11pm UTC](https://forums.unrealengine.com/t/cant-solve-issue-with-enhanced-in-put-component/1197155/5 "2023-07-13T16:11:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
