x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Input action for mouse button not triggering

I have a following setup for input.

alt text

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

alt text

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: https://github.com/FredyC/TestUnrealInput

Product Version: UE 4.14
Tags:
more ▼

asked Dec 12 '16 at 10:41 AM in Blueprint Scripting

avatar image

Daniel K.
160 9 21 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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.

more ▼

answered Dec 13 '16 at 02:05 PM

avatar image

Rrrramadge
256 11 4 7

avatar image Daniel K. Dec 13 '16 at 02:25 PM

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

avatar image Rrrramadge Dec 14 '16 at 07:12 AM

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

avatar image Daniel K. Dec 14 '16 at 07:55 AM

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 :) I have setup github repo with such simple project. Can you please try it? Perhaps I am just missing some settings there... https://github.com/FredyC/TestUnrealInput

avatar image Rrrramadge Dec 14 '16 at 09:46 AM

i had a look and got it working by adding this

alt text

Someone else had a similar prob here

https://answers.unrealengine.com/questions/420047/an-lmb-event-is-only-triggered-with-a-double-click.html

click.png (89.8 kB)
avatar image Daniel K. Dec 14 '16 at 01:43 PM

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 :) Thanks :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

more ▼

answered Dec 14 '16 at 08:03 AM

avatar image

andreschaaf
248 10 8 19

avatar image Daniel K. Dec 14 '16 at 08:13 AM

Of course I have it enabled... alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

alt text

I have setup a separate branch in git repo with version that works now: https://github.com/FredyC/TestUnrealInput/tree/working

more ▼

answered Dec 14 '16 at 09:51 AM

avatar image

Daniel K.
160 9 21 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question