Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInputComponent > API/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 FInputActionHandlerWithKeySignature::TMethodPtr< UserClass > Func
)
Remarks
Binds a key event to a delegate function with key signature. Returned reference is only guaranteed to be valid until another input key is bound.