// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3c.github.io/gamepad/extensions.html#gamepadpose-interface
[
    OriginTrialEnabled=GamepadExtensions
] interface GamepadPose {
    [MeasureAs=GamepadPoseHasOrientation] readonly attribute boolean hasOrientation;
    [MeasureAs=GamepadPoseHasPosition] readonly attribute boolean hasPosition;
    [MeasureAs=GamepadPosePosition] readonly attribute Float32Array? position;
    [MeasureAs=GamepadPoseLinearVelocity] readonly attribute Float32Array? linearVelocity;
    [MeasureAs=GamepadPoseLinearAcceleration] readonly attribute Float32Array? linearAcceleration;
    [MeasureAs=GamepadPoseOrientation] readonly attribute Float32Array? orientation;
    [MeasureAs=GamepadPoseAngularVelocity] readonly attribute Float32Array? angularVelocity;
    [MeasureAs=GamepadPoseAngularAcceleration] readonly attribute Float32Array? angularAcceleration;
};
