# Left Mouse button pressed and released equivalent in enhanced input (or drag and drop)

**URL:** <https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 22, 2024, 9:02am UTC](https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884 "2024-01-22T09:02:40Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 8, 2024, 10:27am UTC](https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884/18 "2024-02-08T10:27:59Z")

</div>

Here’s some script allowing for picking up stuff and moving it in a specific plane only we determine ourselves manually:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/8/2383f14d0fec96365b772c1ef242963902cf3da5.jpeg)

The green debug plane visualises what’s going on. In short: shoot a beam (trace) from the screen centre towards the projected mouse cursor, when it eventually _intersects_ that plane (which is infinitely large), place the actor at the intersect world coordinate.

If I change the normal:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/e/d1e172b10984c1d2a4cb21859ec661e2904e91f1.png)

You could derive this `Normal` from the actor itself instead:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/e/49e9721e6b21e39e7da8351223bab756fff20d7f.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/e/cfecf0ddf40218a9cc542bbd830e3a02db5d6cac.png)

* * *

Or you can get it from the surface in the world - tracing returns a Normal, you do not need the virtual plane then:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/d/c2d3e14f1876f845ccc81a3da4bcda06f7b1b845.png)

* * *

> I haven’t understood anything

Set up a new project, replicate the above, experiment, see what you can learn. At some point the whole thing will _click_.

---

_[View the full topic](https://forums.unrealengine.com/t/left-mouse-button-pressed-and-released-equivalent-in-enhanced-input-or-drag-and-drop/1633884)._
