# \[UMG\] Implementing Touch Events

**URL:** <https://forums.unrealengine.com/t/umg-implementing-touch-events/302000>\
**Category:** UI\
**Tags:** User-Interface, unreal-engine, touch, touch-event, question, UMG\
**Created:** [December 19, 2014, 3:25am UTC](https://forums.unrealengine.com/t/umg-implementing-touch-events/302000 "2014-12-19T03:25:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruffian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ruffian](https://forums.unrealengine.com/u/Ruffian)\
**Post date:** [December 19, 2014, 3:25am UTC](https://forums.unrealengine.com/t/umg-implementing-touch-events/302000/1 "2014-12-19T03:25:13Z")

</div>

Say I have a UMG Widget with a couple Borders exposed as variables. Assume I want to implement the “On Touch” events (moved, started, ended)… What’s the workflow for checking if the touch event is over my borders? I don’t really understand how the “My Geometry” and “In Touch Event” inputs work, or the return value for the output, when implementing the touch events. Parsing thru the context sensitivity I have mangled my way into getting the XY coordinate of the event, and then I have _manually_ done hitbox math (i.e. i manually placed my border at this location, and know it’s size, and am doing \<= and \>= checks of the touch location) to get something working. I feel as though there’s a much better way to do this however, but even getting the position of a widget in blueprints is seemingly impossible - though setting all the variables is easy.

---

<div class="post-metadata">

**Author:** ![Ruffian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ruffian](https://forums.unrealengine.com/u/Ruffian)\
**Post date:** [December 23, 2014, 1:09am UTC](https://forums.unrealengine.com/t/umg-implementing-touch-events/302000/2 "2014-12-23T01:09:54Z")

</div>

As an addendum, is there _any_ way to get an event called literally the moment the user touches a finger to the screen? The only time I’m seeing any information updates (touch registering, touch/mouse positions updating to current location) are when either tapping (only updates the moment of releasing the finger and not when the tap starts) or moving a finger across the screen.

Without knowing the moment a finger touches the screen, it’s impossible to get any reliable “hold” interaction.
