aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/gamepad/mapping/index.html
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/mapping/index.html
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/mapping/index.html')
-rw-r--r--files/ja/web/api/gamepad/mapping/index.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/files/ja/web/api/gamepad/mapping/index.html b/files/ja/web/api/gamepad/mapping/index.html
new file mode 100644
index 0000000000..fdc4924aed
--- /dev/null
+++ b/files/ja/web/api/gamepad/mapping/index.html
@@ -0,0 +1,57 @@
+---
+title: Gamepad.mapping
+slug: Web/API/Gamepad/mapping
+tags:
+ - API
+ - Gamepad API
+ - Games
+ - NeedsBetterSpecLink
+ - NeedsMarkupWork
+ - Property
+ - Reference
+ - Référence(2)
+translation_of: Web/API/Gamepad/mapping
+---
+<p>{{APIRef("Gamepad API")}}</p>
+
+<p>{{domxref("Gamepad")}} インターフェイスの <code><strong>Gamepad.mapping</strong></code> プロパティは、ブラウザーがデバイスのコントロールを既知のレイアウトに再マップしたかどうかを示す文字列を返します。</p>
+
+<p>現在、サポートされている既知のレイアウトは1つだけです – <a href="https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#remapping">標準のゲームパッド</a>。ブラウザーがデバイス上のコントロールをそのレイアウトにマッピングできる場合、 <code>mapping</code> プロパティは文字列 <code>standard</code> に設定されます。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox notranslate"><span class="idlInterface" id="idl-def-Gamepad"><span class="idlAttribute">readonly attribute <span class="idlAttrType">DOMString</span> <span class="idlAttrName">mapping</span>;</span></span></pre>
+
+<h2 id="例">例</h2>
+
+<pre class="brush: js notranslate">var gp = navigator.getGamepads()[0];
+console.log(gp.mapping);</pre>
+
+<h2 id="値">値</h2>
+
+<p>{{domxref("string")}} 。</p>
+
+<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("Gamepad", "#dom-gamepad-mapping", "Gamepad.mapping")}}</td>
+ <td>{{Spec2("Gamepad")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザー実装状況">ブラウザー実装状況</h2>
+
+<p>{{Compat("api.Gamepad.mapping")}}</p>
+
+<h2 id="関連項目">関連項目</h2>
+
+<p><a href="/en-US/docs/Web/Guide/API/Gamepad">Using the Gamepad API</a></p>