class MouseSystem

Defined at line 28 of file ../../src/ui/scenic/lib/input/mouse_system.h

Tracks input APIs.

Thread-unsafe. All methods are expected to be called from the same thread (the "input thread").

The only exception is `SetViewTreeSnapshot()`, which replaces the existing snapshot under a mutex

lock.

Public Methods

void MouseSystem (sys::ComponentContext * context, HitTester & hit_tester, RequestFocusFunc request_focus)

Defined at line 21 of file ../../src/ui/scenic/lib/input/mouse_system.cc

void RegisterMouseSource (fidl::InterfaceRequest<fuchsia::ui::pointer::MouseSource> mouse_source_request, zx_koid_t client_view_ref_koid)

Defined at line 25 of file ../../src/ui/scenic/lib/input/mouse_system.cc

void ~MouseSystem ()

Defined at line 32 of file ../../src/ui/scenic/lib/input/mouse_system.h

void InjectMouseEventExclusive (InternalMouseEvent event, StreamId stream_id, const view_tree::Snapshot & snapshot)

Injects a mouse event directly to the View with koid |event.target|.

Defined at line 65 of file ../../src/ui/scenic/lib/input/mouse_system.cc

void InjectMouseEventHitTested (InternalMouseEvent event, StreamId stream_id, const view_tree::Snapshot & snapshot)

Injects a mouse event by hit testing for appropriate targets.

Defined at line 75 of file ../../src/ui/scenic/lib/input/mouse_system.cc

void CancelMouseStream (StreamId stream_id)

Sends a "View exit" event to the current receiver of |stream_id|, if there is one, and resets

the tracking state for the mouse stream.

Defined at line 120 of file ../../src/ui/scenic/lib/input/mouse_system.cc