# {py:mod}`simvx.core.events` ```{py:module} simvx.core.events ``` ```{autodoc2-docstring} simvx.core.events :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`InputEvent ` - ```{autodoc2-docstring} simvx.core.events.InputEvent :summary: ``` * - {py:obj}`TreeInputEvent ` - ```{autodoc2-docstring} simvx.core.events.TreeInputEvent :summary: ``` ```` ### API `````{py:class} InputEvent(screen_pos: tuple[float, float], button: int, ray_origin: tuple[float, float, float], ray_direction: tuple[float, float, float], distance: float = 0.0) :canonical: simvx.core.events.InputEvent ```{autodoc2-docstring} simvx.core.events.InputEvent ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.events.InputEvent.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.core.events.InputEvent.__slots__ :value: > ('screen_pos', 'button', 'ray_origin', 'ray_direction', 'distance') ```{autodoc2-docstring} simvx.core.events.InputEvent.__slots__ ``` ```` ````` `````{py:class} TreeInputEvent(type: str, *, key: str = '', pressed: bool = False, button: int = 0, position: tuple[float, float] = (0.0, 0.0), delta: tuple[float, float] = (0.0, 0.0)) :canonical: simvx.core.events.TreeInputEvent ```{autodoc2-docstring} simvx.core.events.TreeInputEvent ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.core.events.TreeInputEvent.__init__ ``` ````{py:attribute} __slots__ :canonical: simvx.core.events.TreeInputEvent.__slots__ :value: > ('type', 'key', 'pressed', 'button', 'position', 'delta', 'handled') ```{autodoc2-docstring} simvx.core.events.TreeInputEvent.__slots__ ``` ```` ````{py:method} __repr__() -> str :canonical: simvx.core.events.TreeInputEvent.__repr__ ```` `````