# On\_input with fixed\_update?

**URL:** <https://forum.defold.com/t/on-input-with-fixed-update/76559>\
**Category:** Questions\
**Created:** [April 12, 2024, 11:32am UTC](https://forum.defold.com/t/on-input-with-fixed-update/76559 "2024-04-12T11:32:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrazyAmphibian](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/crazyamphibian/32/26089_2.png) [@CrazyAmphibian](https://forum.defold.com/u/CrazyAmphibian)\
**Post date:** [April 12, 2024, 11:32am UTC](https://forum.defold.com/t/on-input-with-fixed-update/76559/1 "2024-04-12T11:32:40Z")

</div>

when using a fixed update, does `on_input` fire on `update` or on `fixed_update` time intervals?

---

<div class="post-metadata">

**Author:** ![Alex\_8BitSkull](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/alex_8bitskull/32/5424_2.png) [@Alex\_8BitSkull](https://forum.defold.com/u/Alex_8BitSkull)\
**Post date:** [April 12, 2024, 11:37am UTC](https://forum.defold.com/t/on-input-with-fixed-update/76559/2 "2024-04-12T11:37:05Z")

</div>

Have a look at this manual section and see if it answers your question:

> **[Defold application lifecycle manual](https://defold.com/manuals/application-lifecycle/#the-update-loop)**
>
> This manual details the lifecycle of Defold games and applications.

If I understand it correctly the answer is “neither”, it happens before update.

---

<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:** [April 12, 2024, 11:57am UTC](https://forum.defold.com/t/on-input-with-fixed-update/76559/3 "2024-04-12T11:57:32Z")

</div>

> [@Alex\_8BitSkull](#):
>
> If I understand it correctly the answer is “neither”, it happens before update.

Correct. Input is a separate part of the engine main loop and doesn’t really have anything to do with the fixed update.

---

<div class="post-metadata">

**Author:** ![CrazyAmphibian](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/crazyamphibian/32/26089_2.png) [@CrazyAmphibian](https://forum.defold.com/u/CrazyAmphibian)\
**Post date:** [April 12, 2024, 7:00pm UTC](https://forum.defold.com/t/on-input-with-fixed-update/76559/4 "2024-04-12T19:00:46Z")

</div>

> this manual section

i checked before making the post, and that part of the manual didn’t have much information on fixed update besides a single box of text, unlike the diagrams the rest of the functions get

> it happens before update.

i meant it for update frequency purposes.
