--- title: GamepadPose.hasOrientation slug: Web/API/GamepadPose/hasOrientation tags: - API - Experimental - Gamepad API - GamepadPose - Property - Reference - Virtual Reality - WebVR - hasOrientation translation_of: Web/API/GamepadPose/hasOrientation ---
{{APIRef("WebVR API")}}{{SeeCompatTable}}

{{domxref("GamepadPose")}} インターフェイスの hasOrientation 読み取り専用プロパティは、 {{domxref("Gamepad")}} が方向情報を返すことができるかどうかを示す {{domxref("Boolean")}} を返します。

構文

var hasItGotOrientation = gamepadPoseInstance.hasOrientation;

{{domxref("Boolean")}} 。

TBD

仕様

仕様 ステータス 備考
{{SpecName('GamepadExtensions', '#dom-gamepadpose-hasorientation', 'hasOrientation')}} {{Spec2('GamepadExtensions')}} 初回定義

ブラウザー実装状況

{{Compat("api.GamepadPose.hasOrientation")}}

関連項目