Namespaces
Records
-
class AccelerationInputDevice -
class AccelerationInputDeviceTest_Descriptor_Test -
class AccelerationInputDeviceTest_InvalidInputReports_Test -
class AccelerationInputDeviceTest_ReadInputReports_Test -
class GyroscopeInputDevice -
class GyroscopeInputDeviceTest_Descriptor_Test -
class GyroscopeInputDeviceTest_InvalidInputReports_Test -
class GyroscopeInputDeviceTest_ReadInputReports_Test -
class InputDevice -
class InputDeviceDispatcher -
class InputDeviceInfo -
class InputDeviceTest -
class Numeric -
class RgbcLightInputDevice -
class RgbcLightInputDeviceTest_Descriptor_Test -
class RgbcLightInputDeviceTest_InvalidInputReports_Test -
class RgbcLightInputDeviceTest_ReadInputReports_Test -
class RootDevice -
class SensorReport -
class TestAccelerationInputDevice -
class TestGyroscopeInputDevice -
class TestRgbcLightInputDevice
Functions
-
SensorReport ParseSensorReport (const char * datasize_t sizesize_t max_fieldschar delimiter)Parse raw sensor device input with format "name:<field1>:<field2>:..." to a
|SensorReport| struct.
Arguments:
|data|: Sensor device input string.
|size|: Maximum input size. If [data, data + size) doesn't contain '
\
0',
the input size will be this value; otherwise it will be
|strlen(data)|.
|max_fields|: Maximum number of fields to be parsed. If |max_fields| is 0,
all fields will be parsed. Default is 0 (unlimited).
|delimiter|: Delimiter between fields. Default is ':'.
Defined at line 36 of file ../../src/ui/input/drivers/goldfish_sensor/parser.cc