# STUDIO: How to get event data from StateDefiner.listen

**URL:** <https://forum.8thwall.com/t/studio-how-to-get-event-data-from-statedefiner-listen/4865>\
**Category:** Technical Support\
**Tags:** general, studio\
**Created:** [February 19, 2025, 9:35am UTC](https://forum.8thwall.com/t/studio-how-to-get-event-data-from-statedefiner-listen/4865 "2025-02-19T09:35:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_King](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sebastian\_King](https://forum.8thwall.com/u/Sebastian_King)\
**Post date:** [February 19, 2025, 9:35am UTC](https://forum.8thwall.com/t/studio-how-to-get-event-data-from-statedefiner-listen/4865/1 "2025-02-19T09:35:28Z")

</div>

Hello, I want to know if it’s possible to get TouchEvent data, or any other data for that matter from the StateDefiner.listen callback. It passes in a ‘QueuedEvent’, but I haven’t been able to figure out if I can get the TouchEvent data from it.

I tried casting the QueuedEvent and the Data to a TouchEvent to no avail.

`.listen(eid, ecs.input.SCREEN_TOUCH_START, (e) => { // How to access TouchEvent data? }`

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [February 19, 2025, 7:54pm UTC](https://forum.8thwall.com/t/studio-how-to-get-event-data-from-statedefiner-listen/4865/2 "2025-02-19T19:54:21Z")

</div>

Hi, welcome to the forums!

If you `console.log(e)` you’ll see all the properties the event dispatches.

 ![Screenshot 2025-02-19 at 11.54.04 AM](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/5/5e255696683d0b0b30e567633e3a163f88af6e0c.png)

---

<div class="post-metadata">

**Author:** ![Sebastian\_King](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sebastian\_King](https://forum.8thwall.com/u/Sebastian_King)\
**Post date:** [February 19, 2025, 11:49pm UTC](https://forum.8thwall.com/t/studio-how-to-get-event-data-from-statedefiner-listen/4865/3 "2025-02-19T23:49:15Z")

</div>

Ah excellent. I did try this but I was getting [Object: object] output or something rather.

Apologies, I am a typescript/js rookie!

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [February 20, 2025, 6:04pm UTC](https://forum.8thwall.com/t/studio-how-to-get-event-data-from-statedefiner-listen/4865/4 "2025-02-20T18:04:05Z")

</div>

No worries! I find it easier to use the Browser’s console rather than the 8th Wall console as it provides more information.
