<br />

Added: 7

## **PROTOCOLS**

## DeviceIterator

*Defined in [fuchsia.ui.input/device_listener.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_listener.fidl;l=33)*

Protocol for iterating over the initial set of active devices.

This iterator is returned upon registering a listener and is used to bootstrap
the client's state with the devices that are already present.
Added: HEAD

<br />

### GetNext

Returns the next batch of active devices.

Returns an empty vector when all existing devices have been iterated
through. The client should then close this channel and rely on the
`DeviceListener` for subsequent events.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `devices` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#DeviceEvent>` |

## DeviceListener

*Defined in [fuchsia.ui.input/device_listener.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_listener.fidl;l=64)*

Callback protocol implemented by clients to receive live device change events.

Events are sent to this listener only for changes occurring after registration
is complete.
Added: HEAD

<br />

### OnDeviceChanged

Called when a device change event occurs.

#### Request

| Name | Type |
|---|---|
| `event` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#DeviceEvent` |

## DeviceListenerRegistry

*Defined in [fuchsia.ui.input/device_listener.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_listener.fidl;l=47)*

Registry service that allows clients to monitor input device changes.
Added: HEAD

<br />

### RegisterListener

Registers a listener to receive future device change events.

Returns a `DeviceIterator` which the client MUST use to drain the list
of devices that were already active at the time of registration.

#### Request

| Name | Type |
|---|---|
| `listener` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.ui.input#DeviceListener` |

#### Response

| Name | Type |
|---|---|
| `iterator` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.ui.input#DeviceIterator` |

## ImeService

*Defined in [fuchsia.ui.input/ime_service.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/ime_service.fidl;l=8)*

The service provided by an IME

<br />

### GetInputMethodEditor

#### Request

| Name | Type |
|---|---|
| `keyboard_type` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardType` |
| `action` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputMethodAction` |
| `initial_state` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TextInputState` |
| `client` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputMethodEditorClient` |
| `editor` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputMethodEditor` |

### HideKeyboard

#### Request

\<EMPTY\>

### ShowKeyboard

#### Request

\<EMPTY\>

## InputDevice

*Defined in [fuchsia.ui.input/input_device_registry.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_device_registry.fidl;l=20)*
Deprecated: 13

<br />

### DispatchReport

Dispatch an `InputReport` from the device `token`

#### Request

| Name | Type |
|---|---|
| `report` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputReport` |

## InputMethodEditor

*Defined in [fuchsia.ui.input/text_input.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_input.fidl;l=78)*

A interface for interacting with a text input control.

<br />

### DispatchKey3

Deprecated: 8

#### Request

| Name | Type |
|---|---|
| `event` | `https://fuchsia.dev/reference/fuchsia.ui.input3//https://fuchsia.dev/reference/fuchsia.ui.input3#KeyEvent` |

#### Response

| Name | Type |
|---|---|
| `handled` | `bool` |

### Hide

Deprecated: 13

#### Request

\<EMPTY\>

### InjectInput

Deprecated: 8

#### Request

| Name | Type |
|---|---|
| `event` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputEvent` |

### SetKeyboardType

#### Request

| Name | Type |
|---|---|
| `keyboard_type` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardType` |

### SetState

#### Request

| Name | Type |
|---|---|
| `state` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TextInputState` |

### Show

Deprecated: 13

#### Request

\<EMPTY\>

## InputMethodEditorClient

*Defined in [fuchsia.ui.input/text_input.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_input.fidl;l=110)*

An interface to receive information from `TextInputService`.

<br />

### DidUpdateState

#### Request

| Name | Type |
|---|---|
| `state` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TextInputState` |
| `event` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputEvent?` |

### OnAction

#### Request

| Name | Type |
|---|---|
| `action` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#InputMethodAction` |

## **STRUCTS**

### Axis

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=38)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `range` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Range` |   | No default |
| `resolution` | `int32` |   | 1 |
| `scale` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#AxisScale` |   | [AxisScale.LINEAR](https://fuchsia.dev/reference/fidl/fuchsia.ui.input#AxisScale.LINEAR) |

### AxisF

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=47)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `range` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#RangeF` |   | No default |
| `resolution` | `float32` |   | 1 |
| `scale` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#AxisScale` |   | [AxisScale.LINEAR](https://fuchsia.dev/reference/fidl/fuchsia.ui.input#AxisScale.LINEAR) |

### DeviceInfo

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=259)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `vendor_id` | `uint32` |   | No default |
| `product_id` | `uint32` |   | No default |
| `version` | `uint32` |   | No default |
| `name` | `string` |   | No default |

### FocusEvent

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=155)*
Deprecated: 10

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `event_time` | `uint64` | Time the event was delivered. The time is in nanoseconds and corresponds to the monotonic time as determined by the zx_clock_get_monotonic syscall. | No default |
| `focused` | `bool` | Whether the view has gained input focused or not. | No default |

### InputReport

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=280)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `event_time` | `uint64` |   | No default |
| `keyboard` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardReport?` |   | No default |
| `media_buttons` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#MediaButtonsReport?` |   | No default |
| `mouse` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#MouseReport?` |   | No default |
| `stylus` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#StylusReport?` |   | No default |
| `touchscreen` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchscreenReport?` |   | No default |
| `sensor` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SensorReport?` |   | No default |
| `trace_id` | `uint64` |   | 0 |

### KeyboardEvent

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=35)*

`KeyboardEvent` represents event generated by a user's interaction with a
keyboard.

Those events are triggered by distinct pressed state changes of the keys.

The state transitions should be as follows:
PRESSED -\> (REPEAT -\>) RELEASED
or
PRESSED -\> (REPEAT -\>) CANCELLED

The input system will repeat those events automatically when a code_point is
available.

DEPRECATED: Will be removed in favor of `fuchsia.ui.input.KeyEvent`.
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `event_time` | `uint64` | Time the event was delivered. The time is in nanoseconds and corresponds to the monotonic time as determined by the zx_clock_get_monotonic syscall. | No default |
| `device_id` | `uint32` |   | No default |
| `phase` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardEventPhase` |   | No default |
| `hid_usage` | `uint32` | Keyboard HID Usage See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf | No default |
| `code_point` | `uint32` | The unicode code point represented by this key event, if any. Dead keys are represented as Unicode combining characters. If there is no unicode code point, this value is zero. | No default |
| `modifiers` | `uint32` | Key modifiers as defined by the different kModifier constants such as `kModifierCapsLock` currently pressed | No default |

### KeyboardReport

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=74)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `pressed_keys` | `vector<uint32>` |   | No default |

### MediaButtonsDescriptor

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=57)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `buttons` | `uint32` |   | No default |

### MediaButtonsReport

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=248)*

`MediaButtonsReport` describes the media buttons event delivered from the event stream.
Each bool in the report represents a single button where true means the button
is being pressed. A single report should be sent on every state change.
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `volume_up` | `bool` |   | No default |
| `volume_down` | `bool` |   | No default |
| `mic_mute` | `bool` |   | No default |
| `reset` | `bool` |   | No default |
| `pause` | `bool` |   | No default |
| `camera_disable` | `bool` |   | No default |

### MouseReport

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=102)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `rel_x` | `int32` |   | No default |
| `rel_y` | `int32` |   | No default |
| `rel_hscroll` | `int32` |   | No default |
| `rel_vscroll` | `int32` |   | No default |
| `pressed_buttons` | `uint32` |   | No default |

### PointerEvent

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=121)*

Pointers represent raw data about the user's interaction with the screen.

The state transitions should be as follows:
ADD (-\> HOVER) -\> DOWN -\> MOVE -\> UP (-\> HOVER) -\> REMOVE

At any point after the initial ADD, a transition to CANCEL is also possible.
Deprecated: 10

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `event_time` | `uint64` | Time the event was delivered. The time is in nanoseconds and corresponds to the monotonic time as determined by the zx_clock_get_monotonic syscall. | No default |
| `device_id` | `uint32` |   | No default |
| `pointer_id` | `uint32` |   | No default |
| `type` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#PointerEventType` |   | No default |
| `phase` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#PointerEventPhase` |   | No default |
| `x` | `float32` | `x` and `y` are in the coordinate system of the View. | No default |
| `y` | `float32` |   | No default |
| `radius_major` | `float32` |   | 0 |
| `radius_minor` | `float32` |   | 0 |
| `buttons` | `uint32` | Currently pressed buttons as defined the kButton constants such as `kMousePrimaryButton` | No default |

### Range

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=19)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `min` | `int32` |   | No default |
| `max` | `int32` |   | No default |

### RangeF

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=25)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `min` | `float32` |   | No default |
| `max` | `float32` |   | No default |

### SendKeyboardInputCmd

*Defined in [fuchsia.ui.input/commands.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/commands.fidl;l=15)*
Deprecated: 10

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `compositor_id` | `uint32` |   | No default |
| `keyboard_event` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardEvent` |   | No default |

### SendPointerInputCmd

*Defined in [fuchsia.ui.input/commands.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/commands.fidl;l=21)*
Deprecated: 10

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `compositor_id` | `uint32` |   | No default |
| `pointer_event` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#PointerEvent` |   | No default |

### SensorAxis

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=65)*

A `SensorAxis` is a normal `Axis` with an additional `SensorType` to describe what the
axis is measuring.
Added: HEAD

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `axis` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` |   | No default |
| `type` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SensorType` |   | No default |

### SetHardKeyboardDeliveryCmd

*Defined in [fuchsia.ui.input/commands.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/commands.fidl;l=27)*
Deprecated: 10

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `delivery_request` | `bool` |   | No default |

### SetParallelDispatchCmd

*Defined in [fuchsia.ui.input/commands.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/commands.fidl;l=32)*
Deprecated: 10

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `parallel_dispatch` | `bool` |   | No default |

### StylusDescriptor

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=119)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `x` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Axis` |   | No default |
| `y` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Axis` |   | No default |
| `pressure` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Axis?` |   | No default |
| `is_invertible` | `bool` |   | false |
| `buttons` | `uint32` |   | No default |

### StylusReport

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=136)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `x` | `int32` |   | No default |
| `y` | `int32` |   | No default |
| `pressure` | `uint32` |   | No default |
| `is_in_contact` | `bool` |   | No default |
| `in_range` | `bool` |   | No default |
| `is_inverted` | `bool` |   | No default |
| `pressed_buttons` | `uint32` |   | No default |

### TextInputState

*Defined in [fuchsia.ui.input/text_input.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_input.fidl;l=63)*

The current text, selection, and composing state for editing a run of text.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `revision` | `uint32` | Current state revision to avoid race conditions. | No default |
| `text` | `string` | The current text being edited. | No default |
| `selection` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TextSelection` | The range of text that is currently selected. | No default |
| `composing` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TextRange` | The range of text that is still being composed. | No default |

### TextRange

*Defined in [fuchsia.ui.input/text_editing.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_editing.fidl;l=34)*

A range of characters in a string of text. Although strings in FIDL's wire
format are UTF-8 encoded, these indices are measured in UTF-16 code units
for legacy reasons. These text input APIs will eventually be replaced by
fuchsia.ui.text, which uses code points instead.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `start` | `int64` | The index of the first UTF-16 code unit in the range. If `start` and `end` are both -1, the text range is empty. | -1 |
| `end` | `int64` | The next index after the last UTF-16 code unit in this range. If `start` and `end` are both -1, the text range is empty. | -1 |

### TextSelection

*Defined in [fuchsia.ui.input/text_editing.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_editing.fidl;l=55)*

A range of text that represents a selection. Although strings in FIDL's wire
format are UTF-8 encoded, these indices are measured in UTF-16 code units
for legacy reasons. These text input APIs will eventually be replaced by
fuchsia.ui.text, which uses code points instead.

Text selection is always directional. Direction should be determined by
comparing base and extent.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `base` | `int64` | The offset at which the selection originates, as measured in UTF-16 code units. Might be larger than, smaller than, or equal to extent. | No default |
| `extent` | `int64` | The offset at which the selection terminates, as measured in UTF-16 code units. When the user uses the arrow keys to adjust the selection, this is the value that changes. Similarly, if the current theme paints a caret on one side of the selection, this is the location at which to paint the caret. Might be larger than, smaller than, or equal to base. | No default |
| `affinity` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TextAffinity` | If the text range is collapsed and has more than one visual location (e.g., occurs at a line break), which of the two locations to use when painting the caret. | No default |

### Touch

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=173)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `finger_id` | `uint32` |   | No default |
| `x` | `int32` |   | No default |
| `y` | `int32` |   | No default |
| `width` | `uint32` |   | No default |
| `height` | `uint32` |   | No default |

### TouchscreenDescriptor

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=163)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `x` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Axis` |   | No default |
| `y` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Axis` |   | No default |
| `max_finger_id` | `uint32` |   | No default |

### TouchscreenReport

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=191)*
Deprecated: 13

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `touches` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Touch>` |   | No default |

## **ENUMS**

### Action [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/device_listener.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_listener.fidl;l=8)*

Describes the type of change that occurred to an input device.
Added: HEAD

<br />

| Name | Value | Description |
|---|---|---|
| ### ADDED | `1` | A new device was added. |
| ### UPDATED | `2` | An existing device was updated (e.g., properties changed). |
| ### REMOVED | `3` | A device was removed. |

### AxisScale [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=31)*
Deprecated: 13

<br />

| Name | Value | Description |
|---|---|---|
| ### LINEAR | `0` |   |
| ### LOGARITHMIC | `1` |   |

### InputMethodAction [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/text_input.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_input.fidl;l=36)*

Determines what happens if the "action" key is pressed on the keyboard,
typically would either be the "Enter" key on a physical keyboard, or an
action button on a virtual keyboard, which is usually placed where Enter
would be, but with a custom label.

<br />

| Name | Value | Description |
|---|---|---|
| ### UNSPECIFIED | `0` | The method action was not specified at all. |
| ### NONE | `1` | No special action is requested. |
| ### GO | `2` | The action is "Go", e.g. execute a command. |
| ### SEARCH | `3` | The action is to invoke a search. |
| ### SEND | `4` | The action is to invoke "send", e.g. if this is an email or a SMS message. |
| ### NEXT | `5` | The action is to move to the next field in the focus sequence. |
| ### DONE | `6` | The action is to end the text editing. |
| ### PREVIOUS | `7` | The action is to move to the previous field in the focus sequence. |
| ### NEWLINE | `8` | Pressing the action key inserts a new line into the text field. In contrast to other values, which all stop editing and invoke a specific action. Added: 8 |

### KeyboardEventPhase [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=9)*
Deprecated: 13

<br />

| Name | Value | Description |
|---|---|---|
| ### PRESSED | `0` | When key is pressed down. |
| ### RELEASED | `1` | When key is released. |
| ### CANCELLED | `2` | This key `PRESSED` is not directed to this input client anymore. |
| ### REPEAT | `3` | Whether this is an automatically generated key repeat |

### KeyboardType [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/text_input.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_input.fidl;l=15)*

Requests a specific keyboard type from the text editing subsystem.

This is most relevant for virtual keyboards which have some leeway in how
the keyboard is presented to the user, as well as which input is acceptable.

For example, a `NUMBER` keyboard type may only allow decimal numbers to be
entered. In addition, a virtual keyboard might only show a numeric keypad
for text entry.

<br />

| Name | Value | Description |
|---|---|---|
| ### TEXT | `0` | Single-line text fields only. Use MULTILINE below for multiline text. |
| ### NUMBER | `1` | A text field intended for entering numbers only. |
| ### PHONE | `2` | A text field for entering phone numbers only (e.g. digits, limited punctuation, perhaps some validation). |
| ### DATETIME | `3` | A text field for entering date and time. For example, may have a calendar widget on the side, to aid in date time entry. |
| ### MULTILINE | `4` | Multi-line text. Added: 8 |

### LedType [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=28)*

An LedType represents an LED on a device that can be turned on or off.
Added: HEAD

<br />

| Name | Value | Description |
|---|---|---|
| ### NUM_LOCK | `1` |   |
| ### CAPS_LOCK | `2` |   |
| ### SCROLL_LOCK | `3` |   |
| ### COMPOSE | `4` |   |
| ### KANA | `5` |   |

### PointerEventPhase [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=75)*
Deprecated: 10

<br />

| Name | Value | Description |
|---|---|---|
| ### ADD | `0` | The device has started tracking the pointer. For example, the pointer might be hovering above the device, having not yet made contact with the surface of the device. |
| ### HOVER | `1` | The pointer has moved with respect to the device while not in contact with the device. |
| ### DOWN | `2` | The pointer has made contact with the device. For `MOUSE` devices, this is triggered when the primary button is pressed down to emulate a touch on the screen. |
| ### MOVE | `3` | The pointer has moved with respect to the device while in contact with the device. |
| ### UP | `4` | The pointer has stopped making contact with the device. For `MOUSE` devices, this is triggered when the primary button is released. |
| ### REMOVE | `5` | The device is no longer tracking the pointer. For example, the pointer might have drifted out of the device's hover detection range or might have been disconnected from the system entirely. |
| ### CANCEL | `6` | The input from the pointer is no longer directed towards this receiver. |

### PointerEventType [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=60)*
Deprecated: 10

<br />

| Name | Value | Description |
|---|---|---|
| ### TOUCH | `0` | A touch-based pointer device. |
| ### STYLUS | `1` | A pointer device with a stylus. |
| ### INVERTED_STYLUS | `2` | A pointer device with a stylus that has been inverted. |
| ### MOUSE | `3` | A pointer device without a stylus. |

### SensorLocation [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=208)*
Deprecated: 13

<br />

| Name | Value | Description |
|---|---|---|
| ### UNKNOWN | `0` |   |
| ### BASE | `1` |   |
| ### LID | `2` |   |

### SensorType [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=46)*

Each sensor value has a corresponding SensorType, which explains what the
value is measuring in the world.
Added: HEAD

<br />

| Name | Value | Description |
|---|---|---|
| ### ACCELEROMETER_X | `1` |   |
| ### ACCELEROMETER_Y | `2` |   |
| ### ACCELEROMETER_Z | `3` |   |
| ### MAGNETOMETER_X | `4` |   |
| ### MAGNETOMETER_Y | `5` |   |
| ### MAGNETOMETER_Z | `6` |   |
| ### GYROSCOPE_X | `7` |   |
| ### GYROSCOPE_Y | `8` |   |
| ### GYROSCOPE_Z | `9` |   |
| ### LIGHT_ILLUMINANCE | `10` |   |
| ### LIGHT_RED | `11` |   |
| ### LIGHT_GREEN | `12` |   |
| ### LIGHT_BLUE | `13` |   |

### TextAffinity [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/text_editing.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/text_editing.fidl;l=16)*

Whether a TextPosition is visually upstream or downstream of its offset.

For example, when a text position exists at a line break, a single offset has
two visual positions, one prior to the line break (at the end of the first
line) and one after the line break (at the start of the second line). A text
affinity disambiguates between those cases. (Something similar happens with
between runs of bidirectional text.)

We do not expect new values to be added to this enum.

<br />

| Name | Value | Description |
|---|---|---|
| ### UPSTREAM | `0` | The position has affinity for the upstream side of the text position. For example, if the offset of the text position is a line break, the position represents the end of the first line. |
| ### DOWNSTREAM | `1` | The position has affinity for the downstream side of the text position. For example, if the offset of the text position is a line break, the position represents the start of the second line. |

### TouchButton [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=228)*
Added: 28

<br />

| Name | Value | Description |
|---|---|---|
| ### PALM | `1` |   |
| ### SWIPE_UP | `2` | Represents a swipe up gesture on the touchscreen. Added: 31 |
| ### SWIPE_LEFT | `3` | Represents a swipe left gesture on the touchscreen. Added: 31 |
| ### SWIPE_RIGHT | `4` | Represents a swipe right gesture on the touchscreen. Added: 31 |
| ### SWIPE_DOWN | `5` | Represents a swipe down gesture on the touchscreen. Added: 31 |

### TouchType [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=38)*

The device type from which the touch originated.
Added: HEAD

<br />

| Name | Value | Description |
|---|---|---|
| ### TOUCHSCREEN | `1` |   |
| ### TOUCHPAD | `2` |   |

## **TABLES**

### ConsumerControlDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=200)*

A Fuchsia ConsumerControl represents a device that changes values on the host.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#ConsumerControlInputDescriptor` |   |

### ConsumerControlInputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=194)*

Describes the format of the input report that will be sent from the
ConsumerControl device to the host.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `buttons` | `vector<https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#ConsumerControlButton>:255` |   |

### ContactInputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=159)*

`ContactInputDescriptor` describes the fields associated with a touch on a touch device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `position_x` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` |   |
| ### 2 | `position_y` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` |   |
| ### 3 | `pressure` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` |   |
| ### 4 | `contact_width` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` |   |
| ### 5 | `contact_height` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` |   |

### DeviceDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=219)*

`DeviceDescriptor` describes a physical input device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `device_information` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#DeviceInformation` | Identifies the physical device. |
| ### 2 | `mouse` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#MouseDescriptor` | Describes the mouse part of the device. |
| ### 3 | `sensor` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SensorDescriptor` | Describes the sensor part of the device. |
| ### 4 | `touch` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchDescriptor` | Describes the touch part of the device. |
| ### 5 | `keyboard` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardDescriptor` | Describes the keyboard part of the device. |
| ### 6 | `consumer_control` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#ConsumerControlDescriptor` | Describes the consumer control part of the device. |

### DeviceEvent

*Defined in [fuchsia.ui.input/device_listener.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_listener.fidl;l=19)*

Represents an event associated with a change in the input devices.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `action` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#Action` | The action that triggered this event. |
| ### 2 | `device_id` | `uint32` | The unique identifier of the device. |
| ### 3 | `descriptor` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#DeviceDescriptor` | The descriptor containing detailed information about the device. |

### DeviceInformation

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=74)*

DeviceInformation provides more information about the device and lets a
client distinguish between devices (e.g between two touchscreens that come
from different vendors).
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `vendor_id` | `uint32` | Required. |
| ### 2 | `product_id` | `uint32` | Required. |
| ### 3 | `version` | `uint32` | Optional. |
| ### 4 | `polling_rate` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Duration` | The time interval between each poll of the device. Optional. |
| ### 5 | `manufacturer_name` | `string:256` | Human-readable name of the manufacturer. Optional. Must be non-empty if present. |
| ### 6 | `product_name` | `string:256` | Human-readable name of the product. Optional. Must be non-empty if present. |
| ### 7 | `serial_number` | `string:256` | Serial number of the device. Optional. Must be non-empty if present. |

### KeyboardDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=152)*

The capabilities of a keyboard device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardInputDescriptor` |   |
| ### 2 | `output` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardOutputDescriptor` |   |

### KeyboardInputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=138)*

Describes the format of the input report that will be sent from the keyboard
to the device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `keys` | `vector<https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Key>:256` | The list of keys that this keyboard contains. |

### KeyboardOutputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=145)*

Describes the format of the output report that can be sent to the keyboard.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `leds` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#LedType>:256` | The list of keyboard LEDs that can be toggled. |

### MediaButtonsEvent [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=179)*
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `volume` | `int8` | Net volume change direction: +1 when volume up is pressed, -1 when volume down is pressed, and 0 when neither or both are pressed. Prefer `volume_up` and `volume_down` when discrete button states are needed (for example, to detect simultaneous presses). |
| ### 2 | `mic_mute` | `bool` |   |
| ### 3 | `pause` | `bool` |   |
| ### 4 | `camera_disable` | `bool` |   |
| ### 5 | `power` | `bool` |   |
| ### 6 | `function` | `bool` |   |
| ### 7 | `device_id` | `uint32` |   |
| ### 8 | `wake_lease` | `handle<eventpair>` | Optional wake lease for power baton passing. |
| ### 9 | `trace_flow_id` | `uint64` | Optional trace flow ID to connect the event flow. |
| ### 10 | `volume_up` | `bool` | Whether the volume up button is pressed. Unlike `volume` (field 1), which sums volume up (+1) and volume down (-1) and cancels out to 0 when both are pressed simultaneously, `volume_up` and `volume_down` report each button's state independently. |
| ### 11 | `volume_down` | `bool` | Whether the volume down button is pressed. See `volume_up` and `volume` (field 1) for how this relates to the net volume field. |

### MouseDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=130)*

The capabilities of a mouse device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#MouseInputDescriptor` | Describes the input capabilities of the device. |

### MouseInputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=105)*

Describes the format of the input report that will be sent from the mouse
to the device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `movement_x` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` | The range of relative X movement. |
| ### 2 | `movement_y` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` | The range of relative Y movement. |
| ### 3 | `scroll_v` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` | The range of relative vertical scroll. |
| ### 4 | `scroll_h` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` | The range of relative horizontal scroll. |
| ### 5 | `buttons` | `vector<uint8>:32` | IDs of the mouse buttons. |
| ### 6 | `position_x` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` | The range of the position of X. |
| ### 7 | `position_y` | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#Axis` | The range of the position of Y. |

### SensorDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=213)*

The capabilities of a sensor device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SensorInputDescriptor` |   |

### SensorInputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=207)*

Describes the format of the input report that will be sent from the sensor
to the device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `values` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SensorAxis>:100` |   |

### TouchButtonsEvent [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=256)*
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `event_time` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#InstantMono` |   |
| ### 2 | `device_info` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchDeviceInfo` |   |
| ### 3 | `pressed_buttons` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchButton>` |   |
| ### 4 | `wake_lease` | `handle<eventpair>` | Optional wake lease for power baton passing. |
| ### 5 | `trace_flow_id` | `uint64` | Optional trace flow ID to connect the event flow. |

### TouchDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=186)*

The capabilities of a touch device.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchInputDescriptor` |   |
| ### 2 | `feature` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchFeatureDescriptor` |   |

### TouchDeviceInfo

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=221)*

Information about a device that issues touch event streams.
Added: 28

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `id` | `uint32` | An identifier for the touch device that issues touch events. Required. |

### TouchFeatureDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=179)*

Describes the format of the touchpad configuration's feature report.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `supports_input_mode` | `bool` |   |
| ### 2 | `supports_selective_reporting` | `bool` |   |

### TouchInputDescriptor

*Defined in [fuchsia.ui.input/device_descriptor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=170)*

Describes the format of the input report that will be sent from the touch device
to the host.
Added: HEAD

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `contacts` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#ContactInputDescriptor>:10` |   |
| ### 2 | `max_contacts` | `uint32` |   |
| ### 3 | `touch_type` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchType` |   |
| ### 4 | `buttons` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.ui.input#TouchButton>:10` |   |

## **UNIONS**

### Command [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.ui.input/commands.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/commands.fidl;l=7)*
Deprecated: 10

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `send_keyboard_input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SendKeyboardInputCmd` |   |
| ### 2 | `send_pointer_input` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SendPointerInputCmd` |   |
| ### 3 | `set_hard_keyboard_delivery` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SetHardKeyboardDeliveryCmd` |   |
| ### 4 | `set_parallel_dispatch` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#SetParallelDispatchCmd` |   |

<br />

### InputEvent [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.ui.input/input_events.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_events.fidl;l=210)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `pointer` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#PointerEvent` | Deprecated: 10 |
| ### 2 | `keyboard` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#KeyboardEvent` | Deprecated: 13 |
| ### 3 | `focus` | `https://fuchsia.dev/reference/fidl/fuchsia.ui.input#FocusEvent` | Deprecated: 10 |

<br />

### SensorReport [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.ui.input/input_reports.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_reports.fidl;l=239)*
Deprecated: 13

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `vector` | `array<int16, 3>` |   |
| ### 2 | `scalar` | `uint16` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [CONSUMER_CONTROL_MAX_NUM_BUTTONS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=22) | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#CONSUMER_CONTROL_MAX_NUM_BUTTONS` | `uint32` | Added: HEAD |
| [KEYBOARD_MAX_NUM_KEYS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=14) | `256` | `uint32` | Added: HEAD |
| [KEYBOARD_MAX_NUM_LEDS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=16) | `256` | `uint32` | Added: HEAD |
| [MAX_NAME_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=10) | `256` | `uint32` | Added: HEAD |
| [MOUSE_MAX_NUM_BUTTONS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=12) | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#MOUSE_MAX_NUM_BUTTONS` | `uint32` | Added: HEAD |
| [SENSOR_MAX_VALUES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=24) | `100` | `uint32` | Added: HEAD |
| [TOUCH_MAX_CONTACTS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=18) | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#TOUCH_MAX_CONTACTS` | `uint32` | Added: HEAD |
| [TOUCH_MAX_NUM_BUTTONS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/device_descriptor.fidl;l=20) | `https://fuchsia.dev/reference/fuchsia.input//https://fuchsia.dev/reference/fuchsia.input#TOUCH_MAX_NUM_BUTTONS` | `uint32` | Added: HEAD |
| [kModifierAlt](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=28) | `96` | `uint32` | Deprecated: 13 |
| [kModifierCapsLock](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=10) | `1` | `uint32` | Deprecated: 13 |
| [kModifierControl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=22) | `24` | `uint32` | Deprecated: 13 |
| [kModifierLeftAlt](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=24) | `32` | `uint32` | Deprecated: 13 |
| [kModifierLeftControl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=18) | `8` | `uint32` | Deprecated: 13 |
| [kModifierLeftShift](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=12) | `2` | `uint32` | Deprecated: 13 |
| [kModifierLeftSuper](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=30) | `128` | `uint32` | Deprecated: 13 |
| [kModifierNone](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=8) | `0` | `uint32` | Keyboard modifiers Deprecated: 13 |
| [kModifierRightAlt](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=26) | `64` | `uint32` | Deprecated: 13 |
| [kModifierRightControl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=20) | `16` | `uint32` | Deprecated: 13 |
| [kModifierRightShift](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=14) | `4` | `uint32` | Deprecated: 13 |
| [kModifierRightSuper](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=32) | `256` | `uint32` | Deprecated: 13 |
| [kModifierShift](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=16) | `6` | `uint32` | Deprecated: 13 |
| [kModifierSuper](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.ui.input/input_event_constants.fidl;l=34) | `384` | `uint32` | Deprecated: 13 |