An LMB event is only triggered with a double-click ?!
Hello there :)
I'm encountering a strange problem and couldn't yet find a solution, albeit googling for hours. Please have a look and try your best :P
The plan here is as follows: When opening the world map (not included here) you can place "markers" and remove them. The InputAction is correctly set up, the marker actor that is placed is, too.
Now the problem with this is that I can click ONCE on the map, which gives me the "LMB registered" print AND places a marker.... but when I click again, on a different spot, I cannot trigger the same thing with only one LMB, I have to double-click in order to get the "LMB.." print and the marker to spawn. Same goes for the RMB for removing, btw.
The strange thing is that all this worked just fine until some hours ago. I can't remember what exactly it was that I've changed, but I'm pretty sure it wasn't on the level BP, but rather some different BP classes.
What could be the problem here?
Thanks, in advance,
EDIT: The InputActions DO consume input, DO execute when paused and DO override parent bindings. All of these values have been changed in a trial and error manner, already.
The map is not a widget but replacing the player's camera with a "map camera"; the linetraces from this BP hit the ground - this worked everytime before.
Aaaalright, after a LOT of trial and error I found a workaround that works for me:
I've forced "Set Input Mode to Game and UI" on all necessary points in all BPs that involve a click (or mouse focus, for that matter).
It seems the focus problem is solved by this and all LMB events trigger now, as intended.
answered May 21 '16 at 05:03 PM
Hi all, I was also experiencing this issue but had no idea what "Setting Input Mode to Game and UI on all necessary points" meant, but was able to google a solution in Project Settings --> Default Viewport Mouse Capture Mode --> select "Capture Permanently Including Initial Mouse Down" instead of "Capture Permanently".
I hope this helps someone else =)
answered Feb 25 '17 at 09:09 AM
I'm using the Shooter game as a base and my guns would only fire if i double clicked.
To solve it, in my ShooterPlayerController I remove the lines that set the InputMode:
Follow this question
Once you sign in you will be able to subscribe for any updates here