diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/vrdisplayfocus_event/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/window/vrdisplayfocus_event/index.html')
-rw-r--r-- | files/ja/web/api/window/vrdisplayfocus_event/index.html | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/files/ja/web/api/window/vrdisplayfocus_event/index.html b/files/ja/web/api/window/vrdisplayfocus_event/index.html new file mode 100644 index 0000000000..61ab54e59a --- /dev/null +++ b/files/ja/web/api/window/vrdisplayfocus_event/index.html @@ -0,0 +1,83 @@ +--- +title: 'Window: vrdisplayfocus event' +slug: Web/API/Window/vrdisplayfocus_event +tags: + - Reference + - WebVR + - events + - onvrdisplayfocus + - vrdisplayfocus +translation_of: Web/API/Window/vrdisplayfocus_event +--- +<div>{{APIRef("Window")}}</div> + +<div> +<p><a href="/en-US/docs/Web/API/WebVR_API">WebVR API</a> の <strong><code>vrdisplayfocus</code></strong> イベントは VR ディスプレイへのプレゼンテーションがぼやけた後に再開されたときに発生します。</p> +</div> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Bubbles</th> + <td>No</td> + </tr> + <tr> + <th scope="row">Cancelable</th> + <td>No</td> + </tr> + <tr> + <th scope="row">Interface</th> + <td>{{domxref("VRDisplayEvent")}}</td> + </tr> + <tr> + <th scope="row">Event handler property</th> + <td><code><a href="/en-US/docs/Web/API/Window/onvrdisplayfocus">onvrdisplayfocus</a></code></td> + </tr> + </tbody> +</table> + +<h2 id="例">例</h2> + +<p><code><a href="/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a></code> メソッドで <code>vrdisplayfocus</code> イベントを使用できます:</p> + +<pre class="brush: js notranslate">window.addEventListener('vrdisplayfocus', function() { + info.textContent = 'Display focused.'; + reportDisplays(); +});</pre> + +<p>または、 <code><a href="/en-US/docs/Web/API/Window/onvrdisplayfocus">onvrdisplayfocus</a></code> イベントハンドラープロパティを使用します:</p> + +<pre class="brush: js notranslate">window.onvrdisplayfocus = function() { + info.textContent = 'Display focused.'; + reportDisplays(); +};</pre> + +<h2 id="仕様">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様</th> + <th scope="col">ステータス</th> + <th scope="col">備考</th> + </tr> + <tr> + <td>{{SpecName('WebVR 1.1', '#dom-window-onvrdisplayfocus', 'vrdisplayfocus')}}</td> + <td>{{Spec2('WebVR 1.1')}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2> + + + +<p>{{Compat("api.Window.vrdisplayfocus_event")}}</p> + +<h2 id="関連項目">関連項目</h2> + +<ul> + <li><a href="/en-US/docs/Web/API/WebVR_API">WebVR API homepage</a></li> + <li><a href="http://mozvr.com/">MozVr.com</a> — demos, downloads, and other resources from the Mozilla VR team.</li> +</ul> |