aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/gamepad/connected
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/connected
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/connected')
-rw-r--r--files/ja/web/api/gamepad/connected/index.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/files/ja/web/api/gamepad/connected/index.html b/files/ja/web/api/gamepad/connected/index.html
new file mode 100644
index 0000000000..df4ef22e8d
--- /dev/null
+++ b/files/ja/web/api/gamepad/connected/index.html
@@ -0,0 +1,57 @@
+---
+title: Gamepad.connected
+slug: Web/API/Gamepad/connected
+tags:
+ - API
+ - Gamepad API
+ - Games
+ - NeedsBetterSpecLink
+ - NeedsMarkupWork
+ - Property
+ - Reference
+ - Référence(2)
+translation_of: Web/API/Gamepad/connected
+---
+<p>{{APIRef("Gamepad API")}}</p>
+
+<p>{{domxref("Gamepad") }} インターフェースの <code><strong>Gamepad.connected</strong></code> プロパティはゲームパッドがシステムに接続しているかどうかを示す真偽値を返します。</p>
+
+<p>ゲームパッドが接続している場合の値は <code>true</code> 、繋がっていない場合は <code>false</code>となります。</p>
+
+<h2 id="構文">構文</h2>
+
+<pre class="syntaxbox notranslate"><span class="idlInterface" id="idl-def-Gamepad"><span class="idlAttribute"> readonly attribute <span class="idlAttrType">boolean</span> <span class="idlAttrName">connected</span>;</span></span></pre>
+
+<h2 id="例">例</h2>
+
+<pre class="brush: js notranslate">var gp = navigator.getGamepads()[0];
+console.log(gp.connected);</pre>
+
+<h2 id="値">値</h2>
+
+<p>{{domxref("boolean")}} 。</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", "#widl-Gamepad-connected", "Gamepad.connected")}}</td>
+ <td>{{Spec2("Gamepad")}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+
+<p>{{Compat("api.Gamepad.connected")}}</p>
+
+<h2 id="参照">参照</h2>
+
+<p><a href="/docs/Web/Guide/API/Gamepad">Gamepad API を利用する</a></p>