Hello, I’m using the below code to handle opening/closing of an in game inventory screen. You should press and hold the key to show it, release the key to hide it.
InputComponent->BindAction("ToggleInventory", IE_Pressed, this, &AChildPlayerController::ShowInventory);
InputComponent->BindAction("ToggleInventory", IE_Released, this, &AChildPlayerController::HideInventory);
When I press the mapped key, the IE_Pressed event is firing as expected, showing the menu, but the IE_Released event is fired immediately afterwards hiding the menu, even though the key is still pressed.
Releasing the key then fires the IE_Released event again.
Am I doing anything wrong? (Other than using the old input system, the project hasn’t yet migrated to the new system.)