blob: 06b89de50d65a309b6f2a89baef527e3ab258327 [file] [log] [blame]
// Copyright 2019 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.input.report;
using zx;
/// |InputReport| is a single report that is created by an input device.
table InputReport {
/// |event_time| is in nanoseconds when the event was recorded.
1: zx.time event_time;
/// |mouse| is the report generated if the device contains a mouse.
2: MouseReport mouse;
/// |sensor| is the report generated if the device contains a sensor.
4: SensorReport sensor;
/// |touch| is the report generated if the device contains a touch device.
5: TouchReport touch;
/// |keyboard| is the report generated if the device contains a keyboard.
6: KeyboardReport keyboard;
/// Unique ID to connect trace async begin/end events.
3: uint64 trace_id;
};