aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/gamepad/displayid
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/gamepad/displayid
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/gamepad/displayid')
-rw-r--r--files/ja/web/api/gamepad/displayid/index.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/files/ja/web/api/gamepad/displayid/index.html b/files/ja/web/api/gamepad/displayid/index.html
new file mode 100644
index 0000000000..05b4ef212a
--- /dev/null
+++ b/files/ja/web/api/gamepad/displayid/index.html
@@ -0,0 +1,64 @@
+---
+title: Gamepad.displayId
+slug: Web/API/Gamepad/displayId
+tags:
+ - API
+ - Experimental
+ - Gamepad
+ - Property
+ - Reference
+ - VR
+ - Virtual Reality
+ - WebVR
+ - displayId
+translation_of: Web/API/Gamepad/displayId
+---
+<p>{{DefaultAPISidebar("WebVR API")}}{{SeeCompatTable}}</p>
+
+<p>{{domxref("Gamepad")}} インターフェイスの <strong><code>displayId</code></strong> 読取専用プロパティは <dfn>{{domxref("VRDisplay")}}</dfn> に関連付けられた<dfn> {{domxref("VRDisplay.displayId")}} を返します —  <code>VRDisplay</code> は表示されるシーンをそのゲームパッドで操作します.</dfn></p>
+
+<h2 id="シンタックス">シンタックス</h2>
+
+<pre class="brush: js notranslate">var myDisplayId = gamepadInstance.displayId;</pre>
+
+<h3 id="値">値</h3>
+
+<p>関連付けされている {{domxref("VRDisplay.displayId")}} を表すlong値です.</p>
+
+<h2 id="例">例</h2>
+
+<pre class="notranslate"><code>window.addEventListener("gamepadconnected", function(e) {
+ if(!e.gamepad.displayId) {
+ console.log('Gamepad connected');
+ } else {
+ console.log('Gamepad connected, associated with VR display ' + e.gamepad.displayId);
+ }
+});</code></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', '#gamepad-getvrdisplays-attribute', 'displayId')}}</td>
+ <td>{{Spec2('WebVR')}}</td>
+ <td>初回翻訳</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+
+<p>{{Compat("api.Gamepad.displayId")}}</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> — Mozilla VRチームのデモ,ダウンロード,その他のリソース.</li>
+</ul>