class InputDevice
Defined at line 39 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
A goldfish multisensor device may create multiple sensors. Each sensor
corresponds to an InputDevice serving fuchsia.input.report.InputDevice FIDL
protocol and could be accessed at /dev/class/input-report/
<id
>.
Public Methods
void InputDevice (zx_device_t * parent, async_dispatcher_t * dispatcher, OnDestroyCallback on_destroy)
Defined at line 32 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.cc
void ~InputDevice ()
Defined at line 36 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.cc
void DdkRelease ()
Defined at line 46 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
void DdkUnbind (ddk::UnbindTxn txn)
Defined at line 47 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
zx_status_t OnReport (const SensorReport & rpt)
void GetInputReportsReader (GetInputReportsReaderRequestView request, GetInputReportsReaderCompleter::Sync & completer)
Open a new InputReportsReader on this device.
Since each device has its own report format, each device needs to keep
its own InputReportManager and implement its own GetInputReportsReader().
void GetDescriptor (GetDescriptorCompleter::Sync & completer)
Gets the device descriptor for this device.
void SendOutputReport (SendOutputReportRequestView request, SendOutputReportCompleter::Sync & completer)
Defined at line 60 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
void GetFeatureReport (GetFeatureReportCompleter::Sync & completer)
TODO(https://fxbug.dev/42158306): Support feature reports (polling frequency,
sensor value thresholds).
Defined at line 67 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
void SetFeatureReport (SetFeatureReportRequestView request, SetFeatureReportCompleter::Sync & completer)
TODO(https://fxbug.dev/42158306): Support feature reports (polling frequency,
sensor value thresholds).
Defined at line 73 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
void GetInputReport (GetInputReportRequestView request, GetInputReportCompleter::Sync & completer)
Defined at line 78 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
void handle_unknown_method (fidl::UnknownMethodMetadata<fuchsia_input_report::InputDevice> metadata, fidl::UnknownMethodCompleter::Sync & completer)
Defined at line 83 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h
async_dispatcher_t * dispatcher ()
Defined at line 89 of file ../../src/ui/input/drivers/goldfish_sensor/input_device.h