RealDocs

APawn::InputEnabled

function Engine Since 4.0
#include "GameFramework/Pawn.h"
Access: public Specifiers: constinline

Description

Returns whether input processing is currently enabled on this pawn. The pawn still requires possession to receive input even when this returns `true`.

Caveats & Gotchas

  • This only reflects the `bInputEnabled` flag set via `EnableInput`/`DisableInput`. It does NOT tell you whether input is currently being delivered — the pawn also needs an active possessing controller.
  • There is no Blueprint-exposed version of this query; if you need it in Blueprint, cache the value yourself or check via `EnableInput` callbacks.

Signature

bool InputEnabled() const

Return Type

bool

Example

Guard movement code behind input check C++
void AMyPawn::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);
	if (InputEnabled())
	{
		// process pending input vectors
	}
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.