# Why my left mouse button not fire the OnMouseButtonDown/Up event?

**URL:** <https://forums.unrealengine.com/t/why-my-left-mouse-button-not-fire-the-onmousebuttondown-up-event/552411>\
**Category:** C++\
**Tags:** unreal-engine, slate, UE4-26, question\
**Created:** [May 9, 2022, 3:51am UTC](https://forums.unrealengine.com/t/why-my-left-mouse-button-not-fire-the-onmousebuttondown-up-event/552411 "2022-05-09T03:51:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcccb61e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcccb61e1](https://forums.unrealengine.com/u/anonymous_user_bcccb61e1)\
**Post date:** [May 9, 2022, 3:51am UTC](https://forums.unrealengine.com/t/why-my-left-mouse-button-not-fire-the-onmousebuttondown-up-event/552411/1 "2022-05-09T03:51:02Z")

</div>

Hello.Here is my question.

I created the slate program and I implemented the “Onmousebuttondown” event,the Left mouse button can’t trigger the event, but the right mouse button can. This makes me feel strange.

I didn’t disable the left mouse button in C++ (in fact I don’t know how to). In the Playcontroller Blueprint, the left mouse button can be responded to. I’m confused.  
Any help would be greatly appreciated.

Here is my code,it’s very easy.I just want to see if it can be fired.Only the right mouse button fire this event.

```auto
FReply SGrid::OnMouseButtonUp(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent)
{
	if (MouseEvent.GetEffectingButton() == EKeys::RightMouseButton || MouseEvent.IsTouchEvent())
	{
		UE_LOG(LogTemp, Log, TEXT("OnMouseRightButtonUp handled"));
	}
	if (MouseEvent.GetEffectingButton() == EKeys::LeftMouseButton || MouseEvent.IsTouchEvent())
	{
		UE_LOG(LogTemp, Log, TEXT("OnMouseleftButtonUp handled"));

	}
		
	return FReply::Handled();

}

```
