EnhancedInput fires both Started and Complete after a Mouse Click.

Hello,
The setup I’m trying to achieve is:

  1. When an Enhanced Input Key is down (Q Key), display a Widget
  2. When that Enhanced Input Key is released (Q Key), remove the Widget

If I click in the Viewport (which is itself an Enhanced Input for Left Mouse Button), then press my Q Key, I get both a Started and immediately a Complete, and then another Started event. I see my Widget appear, disappear, then reappear for my Q Key press and hold.

IF I don’t click again, my Q Key behavior is as I expect. I get a Started on Pressed, and Complete on Release.
IF I click again, I get the Started > Complete > Started flow.

I’ve tried a matrix of Input setups, trying each Input Trigger Setup, every EnhancedInput Node Execution Pin, and disabling “Send Triggered Events when Input is Flushed” in Project Settings.

None of the above issue happens if I’m using a Controller to trigger what the Mouse Click triggers.

What am I doing wrong?

I believe I’ve solved my problem.

It’s unchecking “Should Flush Pressed Keys on Viewport Focus Lost” option under Engine - Input.

Not unchecking “Send Triggered Events when Input is Flushed” option under Engine - Enhanced Input.

1 Like