From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/vrdisplayevent/index.html | 70 ++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 files/ja/web/api/vrdisplayevent/index.html (limited to 'files/ja/web/api/vrdisplayevent/index.html') diff --git a/files/ja/web/api/vrdisplayevent/index.html b/files/ja/web/api/vrdisplayevent/index.html new file mode 100644 index 0000000000..44a84c1513 --- /dev/null +++ b/files/ja/web/api/vrdisplayevent/index.html @@ -0,0 +1,70 @@ +--- +title: VRDisplayEvent +slug: Web/API/VRDisplayEvent +tags: + - API + - Experimental + - Interface + - Reference + - VR + - VRDisplayEvent + - Virtual Reality + - WebVR +translation_of: Web/API/VRDisplayEvent +--- +
{{APIRef("WebVR API")}}{{SeeCompatTable}}
+ +

WebVR API の VRDisplayEvent インターフェイスは、 WebVR 関連イベントのイベントオブジェクトを表します (WebVR ウインドウ拡張機能のリストを参照)。

+ +

コンストラクタ

+ +
+
{{domxref("VRDisplayEvent.VRDisplayEvent()")}}
+
VRDisplayEvent オブジェクトのインスタンスを生成します。
+
+ +

プロパティ

+ +

VRDisplayEvent は、親オブジェクト {{domxref("Event")}} からプロパティも継承します。

+ +
+
{{domxref("VRDisplayEvent.display")}} {{readonlyInline}}
+
このイベントに関連付けられた {{domxref("VRDisplay")}} 。
+
{{domxref("VRDisplayEvent.reason")}} {{readonlyInline}}
+
イベントが発生したヒューマンリーダブルな理由。
+
+ +

+ +
window.addEventListener('vrdisplaypresentchange', function(e) {
+  console.log('Display ' + e.display.displayId + ' presentation has changed. Reason given: ' + e.reason + '.');
+})
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('WebVR 1.1', '#interface-vrdisplayevent', 'VRDisplayEvent')}}{{Spec2('WebVR 1.1')}}初回定義
+ +

ブラウザー実装状況

+ +

{{Compat("api.VRDisplayEvent")}}

+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf