class InputReport
Defined at line 3495 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
An `InputReport` is a single report that is created by an input device.
An `InputReport` can contain one of many different report types. The report
types are not mutually exclusive. The `event_time` is the time in
nanoseconds when the report was generated.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
InputReport & set_event_time (int64_t _value)
InputReport & set_mouse (::fuchsia::input::report::MouseInputReport _value)
InputReport & set_sensor (::fuchsia::input::report::SensorInputReport _value)
InputReport & set_touch (::fuchsia::input::report::TouchInputReport _value)
InputReport & set_keyboard (::fuchsia::input::report::KeyboardInputReport _value)
InputReport & set_consumer_control (::fuchsia::input::report::ConsumerControlInputReport _value)
InputReport & set_trace_id (uint64_t _value)
InputReport & set_report_id (uint8_t _value)
InputReport & set_wake_lease (::zx::eventpair _value)
void InputReport ()
void InputReport (InputReport && other)
void ~InputReport ()
InputReport & operator= (InputReport && other)
::std::unique_ptr<InputReport> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, InputReport * _value, size_t _offset)
zx_status_t Clone (InputReport * _result)
const int64_t & event_time ()
`event_time` is in nanoseconds when the event was recorded.
Defined at line 3502 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_event_time ()
Defined at line 3506 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
int64_t * mutable_event_time ()
`event_time` is in nanoseconds when the event was recorded.
Defined at line 3511 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_event_time ()
Defined at line 3519 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::fuchsia::input::report::MouseInputReport & mouse ()
`mouse` is the report generated if the device contains a mouse.
Defined at line 3528 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_mouse ()
Defined at line 3532 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::MouseInputReport * mutable_mouse ()
`mouse` is the report generated if the device contains a mouse.
Defined at line 3537 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_mouse ()
Defined at line 3545 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::fuchsia::input::report::SensorInputReport & sensor ()
`sensor` is the report generated if the device contains a sensor.
Defined at line 3554 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_sensor ()
Defined at line 3558 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::SensorInputReport * mutable_sensor ()
`sensor` is the report generated if the device contains a sensor.
Defined at line 3563 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_sensor ()
Defined at line 3571 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::fuchsia::input::report::TouchInputReport & touch ()
`touch` is the report generated if the device contains a touch device.
Defined at line 3580 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_touch ()
Defined at line 3584 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::TouchInputReport * mutable_touch ()
`touch` is the report generated if the device contains a touch device.
Defined at line 3589 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_touch ()
Defined at line 3597 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::fuchsia::input::report::KeyboardInputReport & keyboard ()
`keyboard` is the report generated if the device contains a keyboard.
Defined at line 3606 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_keyboard ()
Defined at line 3610 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::KeyboardInputReport * mutable_keyboard ()
`keyboard` is the report generated if the device contains a keyboard.
Defined at line 3615 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_keyboard ()
Defined at line 3623 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::fuchsia::input::report::ConsumerControlInputReport & consumer_control ()
`consumer_controls` is the report generated if the device contains a
ConsumerControl device.
Defined at line 3633 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_consumer_control ()
Defined at line 3637 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::ConsumerControlInputReport * mutable_consumer_control ()
`consumer_controls` is the report generated if the device contains a
ConsumerControl device.
Defined at line 3643 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_consumer_control ()
Defined at line 3651 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const uint64_t & trace_id ()
Unique ID to connect trace async begin/end events.
Defined at line 3660 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_trace_id ()
Defined at line 3664 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
uint64_t * mutable_trace_id ()
Unique ID to connect trace async begin/end events.
Defined at line 3669 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_trace_id ()
Defined at line 3677 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const uint8_t & report_id ()
The Descriptor that describes this InputReport will have a matching
ReportID. If this doesn't exist, report_id is 0.
Defined at line 3687 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_report_id ()
Defined at line 3691 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
uint8_t * mutable_report_id ()
The Descriptor that describes this InputReport will have a matching
ReportID. If this doesn't exist, report_id is 0.
Defined at line 3697 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_report_id ()
Defined at line 3705 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::zx::eventpair & wake_lease ()
Optional wake lease for power baton passing.
Defined at line 3714 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_wake_lease ()
Defined at line 3718 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::zx::eventpair * mutable_wake_lease ()
Optional wake lease for power baton passing.
Defined at line 3723 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_wake_lease ()
Defined at line 3731 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h