From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../window/vrdisplaydisconnect_event/index.html | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 files/ja/web/api/window/vrdisplaydisconnect_event/index.html (limited to 'files/ja/web/api/window/vrdisplaydisconnect_event') diff --git a/files/ja/web/api/window/vrdisplaydisconnect_event/index.html b/files/ja/web/api/window/vrdisplaydisconnect_event/index.html new file mode 100644 index 0000000000..71281e5c3d --- /dev/null +++ b/files/ja/web/api/window/vrdisplaydisconnect_event/index.html @@ -0,0 +1,77 @@ +--- +title: vrdisplaydisconnected +slug: Web/API/Window/vrdisplaydisconnect_event +translation_of: Web/API/Window/vrdisplaydisconnect_event +--- +
{{APIRef}}{{SeeCompatTable}}
+ +
+

WebVR API の vrdisplaydisconnected イベントは,互換性のあるVRデバイスがコンピュータから接続解除された時に発火します.

+
+ + + + + + + + + + + + + + + + + + + + +
BubblesNo
CancelableNo
Target objects{{domxref("Window")}}
Interface{{domxref("Event")}}
+ +

+ +

You can use the vrdisplaydisconnect event in an addEventListener method:

+ +
window.addEventListener('vrdisplaydisconnect', function() {
+  info.textContent = 'Display disconnected.';
+  reportDisplays();
+});
+ +

Or use the onvrdisplaydisconnect event handler property:

+ +
window.onvrdisplaydisconnect = function() {
+  info.textContent = 'Display disconnected.';
+  reportDisplays();
+);
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebVR 1.1', '#dom-window-onvrdisplaydisconnected', 'vrdisplaydisconnected')}}{{Spec2('WebVR 1.1')}}Initial definition
+ +

ブラウザの互換性

+ + + +

{{Compat("api.Window.vrdisplaydisconnect_event")}}

+ +

参照

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