# Consuming input and not passing it to proxy loaded world

**URL:** <https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983>\
**Category:** Questions\
**Created:** [May 23, 2022, 9:36am UTC](https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983 "2022-05-23T09:36:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshad\_Saykhedkar](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/harshad_saykhedkar/32/28610_2.png) [@Harshad\_Saykhedkar](https://forum.defold.com/u/Harshad_Saykhedkar)\
**Post date:** [May 23, 2022, 9:36am UTC](https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983/1 "2022-05-23T09:36:42Z")

</div>

Hello,  
I am a new user, finding it good so far.

Probably making some error in understanding how device input can be marked consumed. [I have read this part of documentation.](https://defold.com/manuals/input/).

In my game there is a main collection which has a GUI, presenting a start game button. This start game button triggers loading a collection via a collection proxy (let us called that as level). The main collection looks something like the following

- gui (level selector)
- loader (it has a reference to another collection proxy).

The collection proxy called level reference in the loader.

The problem is: the click on the start game button gets passed to the ‘level’ too. The player, which moves in point-and-click fashion ends up moving as soon as the level is starting up.

I’m returning `true` in the `on_input` method in the level selector GUI (which is part of main/boostrap collection) , to avoid this very first input being passed on to the proxy. But it still receives the input. Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 23, 2022, 10:37am UTC](https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983/2 "2022-05-23T10:37:13Z")

</div>

Are you sure the gui is getting the input before your game? You can call “acquire\_input\_focus” again to move a script to the top of the input stack.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 23, 2022, 10:37am UTC](https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983/3 "2022-05-23T10:37:54Z")

</div>

Another option is to not acquire input focus in your game on init() but as the result of a message sent to the game after the start button has been pressed.

---

<div class="post-metadata">

**Author:** ![Harshad\_Saykhedkar](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/harshad_saykhedkar/32/28610_2.png) [@Harshad\_Saykhedkar](https://forum.defold.com/u/Harshad_Saykhedkar)\
**Post date:** [May 23, 2022, 10:38am UTC](https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983/4 "2022-05-23T10:38:50Z")

</div>

This one seems like the right option. I will try this out and update here. Thanks!

---

<div class="post-metadata">

**Author:** ![Harshad\_Saykhedkar](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/harshad_saykhedkar/32/28610_2.png) [@Harshad\_Saykhedkar](https://forum.defold.com/u/Harshad_Saykhedkar)\
**Post date:** [May 23, 2022, 1:45pm UTC](https://forum.defold.com/t/consuming-input-and-not-passing-it-to-proxy-loaded-world/70983/5 "2022-05-23T13:45:33Z")

</div>

I solved this by making the game not having input focus by default. It waits a couple of seconds and then acquires input status.

Indeed hacky, but being a newbie, I want to move on to the next steps. Perhaps, I’ll come back to doing this later. I might have to spend more time understanding how input consuming stacks work with loading collections via proxies.

Thanks for the solution though!
