How would you go about making the Grab function a button toggle instead of one where you have to hold down the button? I tried all the EInputEvents and none of them worked. I found the InputKey from the APlayerController class which returns a bool but I don’t know how I would define an FKey.
Example code of what I want to do:
bool KeyDown = APlayerController::InputKey(FKey "F")
if(KeyDown)
{
UE_LOG(LogTemp, Warning, TEXT("F key pressed!"));
}