summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/gamepad/gamepad_pose.idl
blob: f74524c347f224725a40b8e3dca8576f33364f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
[
    RuntimeEnabled=WebVRGamepadSupport
] 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;
};