Input action for mouse button not triggering

I have a following setup for input.

https://cdn.pbrd.co/images/T1WRl7hl.png

Next to it there is a small script on my character blueprint.

https://cdn.pbrd.co/images/8SlXuBaBc.png

When I start this and hit “F” while targeting object with that RemoveObject interface, it works perfectly. However the left mouse button does absolutely nothing. When I add breakpoint to the Remove Object node, it never gets triggered. Is it a bug or it needs to be handled differently?

Example project: GitHub - FredyC/TestUnrealInput

Have you got left mouse button for any other mappings or events? if so try disconnecting them it may be getting in the way of it firing.

Sadly no, I am not using mouse for anything just yet, this is pretty much fresh project.

What template are you using? adding left click to a mapping seems to work for me…

Empty template, no starter content. And I just found out strange thing. It actually triggers that event when I double click with left mouse button. That doesn’t make any sense :slight_smile: I have setup github repo with such simple project. Can you please try it? Perhaps I am just missing some settings there… GitHub - FredyC/TestUnrealInput

Hi,

I can’t look into an example right now.

But probably you have to enable click events within the player controller?

Normally mouse clicks are working fine.

Kind Regards

freakxnet

Of course I have it enabled…

https://cdn.pbrd.co/images/9CX0qrKgu.png

i had a look and got it working by adding this

Someone else had a similar prob here

1 Like

Well that’s really interesting, looks like that main culprit was about mouse capture. Changing it to “Capture During Mouse Down” suddenly works in all cases, action input and also click events within actor itself.

https://cdn.pbrd.co/images/9EyUHgW5h.png

I have setup a separate branch in git repo with version that works now: GitHub - FredyC/TestUnrealInput at working

Ok, I haven’t actually realized you can use this node without actually picking a widget that is considered UI. And you are right, it’s working nicely now, even better then with my solution below :slight_smile: Thanks :slight_smile: