# Overriding touches

**URL:** <https://discourse.processing.org/t/overriding-touches/17483>\
**Category:** Processing for Android\
**Created:** [January 31, 2020, 7:20pm UTC](https://discourse.processing.org/t/overriding-touches/17483 "2020-01-31T19:20:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KnightOfBurgers](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@KnightOfBurgers](https://discourse.processing.org/u/KnightOfBurgers)\
**Post date:** [January 31, 2020, 7:20pm UTC](https://discourse.processing.org/t/overriding-touches/17483/1 "2020-01-31T19:20:21Z")

</div>

I’ve created a Live Wallpaper that involves a lot of dragging about. While executing it, the system tries to shift the homescreen, and the transition distorts the wallpaper. Is there a way that I can prevent the system from reading the touches in some particular area?

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [February 1, 2020, 2:55pm UTC](https://discourse.processing.org/t/overriding-touches/17483/2 "2020-02-01T14:55:14Z")

</div>

If you mean the home screen app’s icons I guess not.  
Could you post a sample code when this happens?

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [February 1, 2020, 3:09pm UTC](https://discourse.processing.org/t/overriding-touches/17483/3 "2020-02-01T15:09:32Z")

</div>

@KnightOfBurgers ===  
you cannot override the home button , that would be against android main principles: the user is free to quit your app at every moment

---

<div class="post-metadata">

**Author:** ![KnightOfBurgers](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@KnightOfBurgers](https://discourse.processing.org/u/KnightOfBurgers)\
**Post date:** [February 2, 2020, 4:57pm UTC](https://discourse.processing.org/t/overriding-touches/17483/4 "2020-02-02T16:57:58Z")

</div>

No, guys. I don’t want to lock away the user. I wish to prevent the home screen from interfering with my Live Wallpaper.  
Let me explain: I have a 3D image on the Wallpaper and I wish to rotate it using touches. I use mouseDragged() to get the vector and rotate thr matrix by that angle. But, as you may have seen, if you swipe sideways on the homescreen, a screen transition occurs. I want to avoid _that_.  
Is there a way to do this?
