Clean up the player controller
This commit is contained in:
@@ -28,7 +28,7 @@ void UlxUserWidget::BackupInputComponent()
|
||||
}
|
||||
}
|
||||
|
||||
void UlxUserWidget::DisableEventBinding(const UInputAction* InputAction)
|
||||
void UlxUserWidget::DisableInputAction(const UInputAction* InputAction)
|
||||
{
|
||||
UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(InputComponent);
|
||||
if (!EIC) return;
|
||||
@@ -40,9 +40,9 @@ void UlxUserWidget::DisableEventBinding(const UInputAction* InputAction)
|
||||
});
|
||||
}
|
||||
|
||||
void UlxUserWidget::RestoreInputBinding(const UInputAction* InputAction)
|
||||
void UlxUserWidget::RestoreInputAction(const UInputAction* InputAction)
|
||||
{
|
||||
DisableEventBinding(InputAction);
|
||||
DisableInputAction(InputAction);
|
||||
|
||||
UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(InputComponent);
|
||||
if (!EIC) return;
|
||||
@@ -59,7 +59,7 @@ void UlxUserWidget::RestoreInputBinding(const UInputAction* InputAction)
|
||||
|
||||
void UlxUserWidget::RedirectInputAction(const UInputAction* From, const UInputAction* To)
|
||||
{
|
||||
DisableEventBinding(From);
|
||||
DisableInputAction(From);
|
||||
|
||||
UEnhancedInputComponent* EIC = Cast<UEnhancedInputComponent>(InputComponent);
|
||||
if (!EIC) return;
|
||||
|
||||
Reference in New Issue
Block a user