# \#event-dispatcher

**URL:** https://discourse.threejs.org/tag/event-dispatcher/911.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [How does controller, controllerGrip, and hand communicate with XR device buttons in threejs?](https://discourse.threejs.org/t/how-does-controller-controllergrip-and-hand-communicate-with-xr-device-buttons-in-threejs/52271)

<div class="topic-metadata">

**Author:** [@PhilipZhu](https://discourse.threejs.org/u/PhilipZhu)\
**Replies:** 0\
**Last updated:** [June 1, 2023, 1:38am UTC](https://discourse.threejs.org/t/how-does-controller-controllergrip-and-hand-communicate-with-xr-device-buttons-in-threejs/52271 "2023-06-01T01:38:22Z")

</div>

(May 15 2023) In this example from threejs, the controllers are defined using these codes: // controllers controller1 = renderer.xr.getController( 0 ); controller1.addEventListener( 'selectstart', onSelectStart ); cont…

---

## [Event when child added to object/group](https://discourse.threejs.org/t/event-when-child-added-to-object-group/43949)

<div class="topic-metadata">

**Author:** [@anidivr](https://discourse.threejs.org/u/anidivr)\
**Replies:** 5\
**Last updated:** [October 25, 2022, 11:39am UTC](https://discourse.threejs.org/t/event-when-child-added-to-object-group/43949 "2022-10-25T11:39:41Z")

</div>

Is there any dispatch event I can listen for when an object is added as a child object? I’ve created an automatic vertical and horizontal layout system. I’m periodically traversing the scene graph to look for any new m…

---

## [How to remove all events from the eventDispatcher?](https://discourse.threejs.org/t/how-to-remove-all-events-from-the-eventdispatcher/20411)

<div class="topic-metadata">

**Author:** [@Fedor\_van\_Eldijk](https://discourse.threejs.org/u/Fedor_van_Eldijk)\
**Replies:** 5\
**Last updated:** [November 4, 2020, 3:17pm UTC](https://discourse.threejs.org/t/how-to-remove-all-events-from-the-eventdispatcher/20411 "2020-11-04T15:17:03Z")

</div>

I set events to some objects using addEventListener. Every time I do this, it seems the old events are preserved as well. But what I would like, is to cleanup events before setting new ones. How can I do that? removeEve…
