# Scenic input

Many input modalities are associated with a particular [View](https://fuchsia.dev/docs/glossary#view).
Events that are described in View coordinates (touchscreen, mouse) are handled
by Scenic, while others (keyboard, touchpad gestures) rely on the View Tree
topology but are not directly dispatched by Scenic.

## Pointer events dispatched to a View

Scenic handles input modalities that are described in View coordinates. For
example, Scenic dispatches touchscreen events and mouse events to a particular
View, and these events have a concrete position in that View's coordinate
system. Commonly, we call these "pointer events".

## View target determined with hit-testing

Scenic must decide which View should receive pointer events. Typically,
[hit-testing](https://en.wikipedia.org/wiki/Hit-testing) is used to find the geometrically top most View,
which Scenic then uses as the target of event dispatch.
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/concepts/ui/scenic/input.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/concepts/ui/scenic/input.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/concepts/ui/scenic/input.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/concepts/ui/scenic/input.md "Edit the source code of this page")