# OnClicked event only fires when double clicked

**URL:** <https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191>\
**Category:** Blueprint\
**Tags:** unreal-engine, onclicked, UE4, Blueprint, question\
**Created:** [July 7, 2016, 2:35am UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191 "2016-07-07T02:35:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![frobro98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frobro98](https://forums.unrealengine.com/u/frobro98)\
**Post date:** [July 7, 2016, 2:35am UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/1 "2016-07-07T02:35:17Z")

</div>

I just upgraded from 4.10, and in that version, clicking works perfectly fine. I am curious if I’m missing some setting that is in 4.12 and not in 4.10 that made the OnClicked event only fire with a double click. Just the behavior is wrong for some odd reason.

---

<div class="post-metadata">

**Author:** ![Max\_TV\_35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Max\_TV\_35](https://forums.unrealengine.com/u/Max_TV_35)\
**Post date:** [September 21, 2016, 3:05pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/2 "2016-09-21T15:05:50Z")

</div>

I have the same problem with 4.13, can someone please help!?!

---

<div class="post-metadata">

**Author:** ![benui](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benui/32/1145446_2.png) [@benui](https://forums.unrealengine.com/u/benui)\
**Post date:** [September 21, 2016, 3:10pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/3 "2016-09-21T15:10:57Z")

</div>

Under **Project Settings \> Input** , is **“Use Mouse for Touch”** set to true?

Try turning it off?

---

<div class="post-metadata">

**Author:** ![frobro98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frobro98](https://forums.unrealengine.com/u/frobro98)\
**Post date:** [September 21, 2016, 5:42pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/4 "2016-09-21T17:42:46Z")

</div>

It isn’t on in my project settings. The settings for mouse properties that are enabled are “Enable Mouse Smoothing” and “EnableFOVScaling”

---

<div class="post-metadata">

**Author:** ![Max\_TV\_35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Max\_TV\_35](https://forums.unrealengine.com/u/Max_TV_35)\
**Post date:** [September 21, 2016, 7:16pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/5 "2016-09-21T19:16:15Z")

</div>

No, not for me either.

---

<div class="post-metadata">

**Author:** ![Max\_TV\_35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Max\_TV\_35](https://forums.unrealengine.com/u/Max_TV_35)\
**Post date:** [September 21, 2016, 7:27pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/6 "2016-09-21T19:27:51Z")

</div>

This is something to do with the Capture option under Project Settings / Input

If i set the Default Viewport Mouse Capture Mode to “Capture during mouse down” then it works ok. But if it is set to “Capture permanently” then it requires double clicks to register a single click.

---

<div class="post-metadata">

**Author:** ![frobro98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frobro98](https://forums.unrealengine.com/u/frobro98)\
**Post date:** [September 22, 2016, 2:29am UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/7 "2016-09-22T02:29:41Z")

</div>

This doesn’t work for me either. It still only fires when I double click.

This is on an Actor in the scene too. Not a widget. Widget buttons work on a single click for me

---

<div class="post-metadata">

**Author:** ![frobro98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frobro98](https://forums.unrealengine.com/u/frobro98)\
**Post date:** [September 22, 2016, 2:45am UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/8 "2016-09-22T02:45:37Z")

</div>

This new thread’s answer worked for me: [An LMB event is only triggered with a double-click ?! - Programming & Scripting - Unreal Engine Forums](https://answers.unrealengine.com/questions/420047/an-lmb-event-is-only-triggered-with-a-double-click.html)

---

<div class="post-metadata">

**Author:** ![urreek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@urreek](https://forums.unrealengine.com/u/urreek)\
**Post date:** [November 20, 2017, 4:50am UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/9 "2017-11-20T04:50:04Z")

</div>

You need to set ur PlayerController input to InputModeGameOnly , and also set the SetConsumeCaptureMouseDown on the InputeMode to false.

In C++ I do this to my PlayerController.

FInputModeGameOnly InputModeData;  
InputModeData.SetConsumeCaptureMouseDown(false);  
PlayerController-\>SetInputMode(InputModeData);

---

<div class="post-metadata">

**Author:** ![StuntThumper88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StuntThumper88](https://forums.unrealengine.com/u/StuntThumper88)\
**Post date:** [January 20, 2019, 8:19pm UTC](https://forums.unrealengine.com/t/onclicked-event-only-fires-when-double-clicked/363191/10 "2019-01-20T20:19:42Z")

</div>

Confirm that the widget is focused. The first click may be focusing it, then the second is the normal click event
