blob: 5e38821cca803e88a8a906488738ffe4aa53698f [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.ui.input;
/// Service to receive input events.
/// Input devices can describe their capabilities using `DeviceDescriptor`
/// and register themselves with the `InputDeviceRegistry`.
protocol InputDeviceRegistry {
/// Register a device with the capabilities described by `DeviceDescriptor`
RegisterDevice(resource struct {
descriptor DeviceDescriptor;
input_device server_end:InputDevice;
protocol InputDevice {
/// Dispatch an `InputReport` from the device `token`
DispatchReport(struct {
report InputReport;