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"

ANY mouse click registers as left mouse click

Hello,

Odd issue here. I am using a Logitech gaming mouse and appear to have run into an issue where any mouse click (left, right, middle, forward, back) registers as a left click. The engine seems unable to differentiate the separate clicks as their own event..

Anyone run into this issue? Can anyone help me troubleshoot?

Here is the custom PlayerController BP:

https://blueprintue.com/blueprint/mqvhy_ic/

Thanks!

Product Version: UE 4.20
Tags:
more ▼

asked Oct 05 '18 at 04:09 PM in Using UE4

avatar image

Austinlele
37 3 4 12

avatar image Everynone Oct 05 '18 at 04:49 PM

Nah, the engine recognises clicks well. Show us where and how you execute a mouse click.

avatar image Austinlele Oct 05 '18 at 04:59 PM

Added a couple of screenshots. All of my click / tap logic is inside a custom player controller. My player pawn is merely a camera with a couple unrelated methods. I enable the controller in my game mode in the world settings.

avatar image Everynone Oct 05 '18 at 05:10 PM

Ah, I see. For starters, LMB and RMB are native controller events, there's no need to create a custom mapping for it:

alt text

So what's the real issue here? You press RMB and it prints Left?

untitled.png (64.8 kB)
avatar image Austinlele Oct 05 '18 at 05:11 PM

That is what I had originally but went with the action mappings to troubleshoot some. I'll switch them back. The issue happens with either event though.

Here is the full player controller:

https://blueprintue.com/blueprint/mqvhy_ic/

avatar image Everynone Oct 05 '18 at 05:17 PM

Tbh, it should work with custom mapping, too. Just tested it like so:

alt text

Is there a case where the left mouse button prints Right?

capture.png (49.4 kB)
avatar image Austinlele Oct 05 '18 at 05:21 PM

Something odd is happening outside of the controller... Do you have a way to chat?? Discord?

I completely disconnected all the click events and attached them to a print, that is it. when i play in game nothing prints on any click, but the logic runs????

avatar image Austinlele Oct 05 '18 at 05:16 PM

nothing prints oddly, but the logic runs. middle mouse button, forward, back all kick off all the logic

avatar image Austinlele Oct 05 '18 at 05:32 PM

Sorry to spam, but question. Is the touch input consuming any mouse click? I think that might be it. How do i make them separate if this is the case?

avatar image Everynone Oct 05 '18 at 05:38 PM

The end user will not use both, right so that should not be a worry in the first place. Or you're building something special?

In the project settings, are you allowing mouse to be used as touch?

avatar image Austinlele Oct 05 '18 at 06:04 PM

If you'd like the points, you can post this as an answer, in my case this option was the issue. I was not building something special.

avatar image Everynone Oct 05 '18 at 07:03 PM

I couldn't care less about karma but do consider converting your own comment, the one you believe is the most relevant and accepting it as answer. Seeing how increasingly popular mobile question are becoming, someone surely will find this useful!

Or event provide your own answer clarifying stuff.

Oh, and good luck with the rest!

avatar image Austinlele Oct 05 '18 at 05:43 PM

SMH yes that option was checked (not sure if default) but with the mouse events disconnected, the touch input was still firing because the mouse clicks were touch. Apparently that option doesn't differentiate left, right, middle click..

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

1 answer: sort voted first

Almost all credit goes to @Everynone for helping me troubleshoot the issue here.

In my specific case, the project settings option "Use mouse for touch" was checked. This caused the touch input events in my player controller to fire regardless of the click type I used (left mouse, right mouse, middle, forward, back etc.). Use mouse for touch seems to override any click events you call in your blueprints.

Here is the option I now have UNCHECKED:

alt text

This will keep your mouse events and touch events separate.

Thanks.

more ▼

answered Oct 05 '18 at 07:43 PM

avatar image

Austinlele
37 3 4 12

(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