Enumerations

enum ParseResult
Name Value
kOk 0
kNoMemory 1
kTooManyItems 2
kReportSizeMismatch 3
kNoCollection 4
kBadReport 5
kNotImplemented 6
kItemNotFound 7

Defined at line 18 of file ../../src/ui/input/lib/hid-input-report/device.h

enum DeviceType
Name Value
kMouse 1
kSensor 2
kTouch 3
kKeyboard 4
kConsumerControl 5

Defined at line 53 of file ../../src/ui/input/lib/hid-input-report/device.h

Records

Functions

  • fuchsia_input_report::wire::Unit HidUnitToLlcppUnit (hid::unit::UnitType unit)

    Defined at line 8 of file ../../src/ui/input/lib/hid-input-report/axis.cc

  • const char * ParseResultGetString (ParseResult result)

    Defined at line 29 of file ../../src/ui/input/lib/hid-input-report/device.h

  • template <typename T>
    fidl::ObjectView<T> Extract (const uint8_t * data, size_t len, hid::Attributes attr, fidl::AnyArena & allocator)

    Defined at line 62 of file ../../src/ui/input/lib/hid-input-report/device.h

  • zx_status_t HidSensorUsageToLlcppSensorType (hid::usage::Sensor usage, fuchsia_input_report::wire::SensorType * type)

    Defined at line 63 of file ../../src/ui/input/lib/hid-input-report/axis.cc

  • zx_status_t HidLedUsageToLlcppLedType (hid::usage::LEDs usage, fuchsia_input_report::wire::LedType * type)

    Defined at line 111 of file ../../src/ui/input/lib/hid-input-report/axis.cc

  • fuchsia_input_report::wire::Axis LlcppAxisFromAttribute (const hid::Attributes & attrs)

    Defined at line 135 of file ../../src/ui/input/lib/hid-input-report/axis.cc

  • ParseResult CreateDevice (const hid::ReportDescriptor * descriptorstd::unique_ptr<Device> * out_device)

    Create `out_device` from a HID descriptor. `out_device` is returned fully formed,

    it does not need any additional initialization.

    Defined at line 15 of file ../../src/ui/input/lib/hid-input-report/device.cc