My code looks like this:
UPlayerInput::AddEngineDefinedActionMapping(FInputActionKeyMapping("Perform action", EKeys::LeftMouseButton));
...
input_component->BindAction("Perform action", IE_Pressed, this, &AMyPlayer::_PerformAction);
If I am holding down the right mouse button, a single left click causes the current action selected by the player to be performed. That is, _PerformAction() is called. However if I am not holding down the right mouse button, I need to double-click to get the same effect.