Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components > UInputComponent > BindKey
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Components/InputComponent.h |
Include | #include "Components/InputComponent.h" |
template<class UserClass>
FInputKeyBinding & BindKey
(
const FKey Key,
const EInputEvent KeyEvent,
UserClass * Object,
typename FInputActionHandlerSignature::TMethodPtr< UserClass > Func
)
Remarks
Binds a key event to a delegate function. Returned reference is only guaranteed to be valid until another input key is bound.