Can't get PlayerInputComponent->BindKey working

PlayerInputComponent->BindKey(EKeys::NumPadTwo, IE_Pressed, this, &ALCharacter::Action_Jump);

I can’t get it working, compiling keep getting unresolved external symbol.
But, it work perfectly fine on BindAction and BindAxis.
I wanna use BindKey, because the function going to be bind is just for debugging purpose, it will be phased out on final product.

Try adding “Slate” to your dependencies in Build.cs file.

1 Like

Thanks, it works
But, seriously, how the hell it could be slate

Press F12 to navigate to BindKey source. It constructs a FInputChord structure. F12 again to navigate to its declaration :
image

1 Like

Thanks, I see