class InputReport
Defined at line 3605 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_trace_id (uint64_t _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_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 3612 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 3616 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 3621 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 3629 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 3638 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 3642 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 3647 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 3655 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 3664 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 3668 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 3673 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 3681 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 3690 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 3694 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 3699 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 3707 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 3716 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 3720 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 3725 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 3733 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 3742 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 3746 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 3751 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 3759 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 3769 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 3773 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 3779 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 3787 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 3797 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 3801 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 3807 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 3815 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 3824 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 3828 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 3833 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 3841 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h