Hello,
I want use the CTRL Key standalone as action, but it dont my way.
In defined in the DefaultInput.INI this:
+ActionMappings=(ActionName="SetCombat",Key=None,bShift=False,bCtrl=True,bAlt=False,bCmd=False)
In my PlayerController I definied the InputComponent and my handler.
InputComponent:
void APrototypeArgentumPlayerController::SetupInputComponent()
{
// set up gameplay key bindings
Super::SetupInputComponent();
InputComponent->BindAction("SetCombat", IE_Pressed, this, &APrototypeArgentumPlayerController::OnSetCombatPressed);
InputComponent->BindAction("SetCombat", IE_Released, this, &APrototypeArgentumPlayerController::OnSetCombatReleased);
}
Handlers:
void APrototypeArgentumPlayerController::OnSetCombatPressed()
{
// Todo: ...
}
void APrototypeArgentumPlayerController::OnSetCombatReleased()
{
// Todo: ...
}
Basicly I want switch in-game into a Comat State via. CTRL only.
Cheers,