class InputReport
Defined at line 3471 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 3478 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 3482 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 3487 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 3495 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 3504 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 3508 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 3513 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 3521 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 3530 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 3534 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 3539 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 3547 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 3556 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 3560 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 3565 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 3573 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 3582 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 3586 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 3591 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 3599 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 3609 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 3613 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 3619 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 3627 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 3636 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 3640 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 3645 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 3653 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 3663 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 3667 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 3673 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 3681 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 3690 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 3694 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 3699 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 3707 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h