UInputComponent::BindKey

Binds a chord event to a delegate function.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/InputComponent.h

Include

#include "Components/InputComponent.h"

Syntax

template<class UserClass>
FInputKeyBinding & BindKey
(
    const FInputChord Chord,
    const EInputEvent KeyEvent,
    UserClass * Object,
    typename FInputActionHandlerSignature::TUObjectMethodDelegate< UserClass >::FMethodPtr Func
)

Remarks

Binds a chord event to a delegate function. Returned reference is only guaranteed to be valid until another input key is bound.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss