blob: ff891d2e7767de3058919e7da09a9e639c933a54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
---
title: vrdisplaydisconnected
slug: Web/API/Window/vrdisplaydisconnect_event
translation_of: Web/API/Window/vrdisplaydisconnect_event
---
<div>{{APIRef}}{{SeeCompatTable}}</div>
<div>
<p><a href="/ja/docs/Web/API/WebVR_API">WebVR API</a> の <strong><code>vrdisplaydisconnected</code></strong> イベントは,互換性のあるVRデバイスがコンピュータから接続解除された時に発火します.</p>
</div>
<table class="properties">
<tbody>
<tr>
<td>Bubbles</td>
<td>No</td>
</tr>
<tr>
<td>Cancelable</td>
<td>No</td>
</tr>
<tr>
<td>Target objects</td>
<td>{{domxref("Window")}}</td>
</tr>
<tr>
<td>Interface</td>
<td>{{domxref("Event")}}</td>
</tr>
</tbody>
</table>
<h2 id="例">例</h2>
<p>You can use the <code>vrdisplaydisconnect</code> event in an <code><a href="/ja/docs/Web/API/EventTarget/addEventListener">addEventListener</a></code> method:</p>
<pre class="brush: js">window.addEventListener('vrdisplaydisconnect', function() {
info.textContent = 'Display disconnected.';
reportDisplays();
});</pre>
<p>Or use the <code><a href="/ja/docs/Web/API/Window/onvrdisplaydisconnect">onvrdisplaydisconnect</a></code> event handler property:</p>
<pre class="brush: js">window.onvrdisplaydisconnect = function() {
info.textContent = 'Display disconnected.';
reportDisplays();
);</pre>
<h2 id="仕様">仕様</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
<tr>
<td>{{SpecName('WebVR 1.1', '#dom-window-onvrdisplaydisconnected', 'vrdisplaydisconnected')}}</td>
<td>{{Spec2('WebVR 1.1')}}</td>
<td>Initial definition</td>
</tr>
</tbody>
</table>
<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
<p>{{Compat("api.Window.vrdisplaydisconnect_event")}}</p>
<h2 id="参照">参照</h2>
<ul>
<li><a href="/ja/docs/Web/API/WebVR_API">WebVR API homepage</a>.</li>
<li><a href="http://mozvr.com/">MozVr.com</a> — Mozilla VRチームのデモ,ダウンロード,その他のリソース.</li>
</ul>
|