Skip to main content

Crate fidl_fuchsia_input_common

Crate fidl_fuchsia_input_common 

Source

Macros§

ConsumerControlButtonUnknown
Pattern that matches an unknown ConsumerControlButton member.
KeyUnknown
Pattern that matches an unknown Key member.
KeymapIdUnknown
Pattern that matches an unknown KeymapId member.
UnitTypeUnknown
Pattern that matches an unknown UnitType member.

Structs§

Axis
An Axis is defined as a range and a unit.
Range
Describe a Range of values.
Unit
Describes a given unit by giving the unit and the unit’s exponent. E.g: Nanometers would have type METERS and exponent -9.

Enums§

ConsumerControlButton
These ControlButtons represent on/off buttons whose purpose is to change the host’s configuration.
Key
A Fuchsia key represents a control that can be pressed or released such as a key or a button on a keyboard or another input device.
KeymapId
Keymaps that should always be present and selectable. The fallback keymaps may be useful on their own but are mainly here to ensure that at least some keymap is present if no other custom keymaps have been defined or in use.
UnitType
This provides an easy, standardized way to specify units. New units can be added as needed. Each UnitType should be named after a specific unit that should be fully distinguished by the name (E.g: Use METERS instead of DISTANCE). More complicated units that need to be differentiated should begin with SI_ (for Internation System of Units) or ENGLISH_ (for English System of Units).

Constants§

CONSUMER_CONTROL_MAX_NUM_BUTTONS
Hardcoded max sizes for ConsumerControl vectors. These sizes should be increased if we ever see a device with more objects than can be represented.
KEYBOARD_MAX_NUM_KEYS
A hardcoded number of max keys per report. This should be increased in the future if we see devices with more than the max amount.
MOUSE_MAX_NUM_BUTTONS
A hardcoded number of max mouse buttons. This should be increased in the future if we ever see mice with more buttons.
TOUCH_MAX_CONTACTS
A hardcoded number of max contacts per report. This should be increased in the future if we see devices with more than the max amount.
TOUCH_MAX_NUM_BUTTONS
The maximum number of touch buttons per report.