diff options
author | MDN <actions@users.noreply.github.com> | 2022-02-13 00:57:20 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2022-02-13 00:57:20 +0000 |
commit | a617ec8afec43949849163167daaf51a60d2b298 (patch) | |
tree | dee1a1dc953762fc075d0517e05278142e7faf9a /files/ja/web/api/window | |
parent | 45dd46e6b17e45bcb3655c53eb921119359336f7 (diff) | |
download | translated-content-a617ec8afec43949849163167daaf51a60d2b298.tar.gz translated-content-a617ec8afec43949849163167daaf51a60d2b298.tar.bz2 translated-content-a617ec8afec43949849163167daaf51a60d2b298.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ja/web/api/window')
-rw-r--r-- | files/ja/web/api/window/ongamepadconnected/index.html | 65 | ||||
-rw-r--r-- | files/ja/web/api/window/ongamepaddisconnected/index.html | 60 |
2 files changed, 0 insertions, 125 deletions
diff --git a/files/ja/web/api/window/ongamepadconnected/index.html b/files/ja/web/api/window/ongamepadconnected/index.html deleted file mode 100644 index ce2246c3cd..0000000000 --- a/files/ja/web/api/window/ongamepadconnected/index.html +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: Window.ongamepadconnected -slug: Web/API/Window/ongamepadconnected -tags: - - API - - Event Handler - - Experimental - - Gamepad API - - Property - - Reference - - Window - - ongamepadconnected -translation_of: Web/API/Window/ongamepadconnected ---- -<div> -<div>{{DefaultAPISidebar("Gamepad API")}}{{SeeCompatTable}}</div> -</div> - -<div>{{domxref("Window")}} <span class="tlid-translation translation"><span title="">インターフェイスの </span></span><strong><code>ongamepadconnected</code></strong><span class="tlid-translation translation"><span title=""> プロパティは、ゲームパッドが接続されたとき (</span></span>{{event('gamepadconnected')}}<span class="tlid-translation translation"><span title="">イベントが発生したとき) に実行されるイベントハンドラを表します。</span></span></div> - -<div> </div> - -<p>イベントのオブジェクトの型は {{domxref("GamepadEvent")}} です。</p> - -<h2 id="構文">構文</h2> - -<pre class="syntaxbox">window.ongamepadconnected = function() { ... }; -</pre> - -<h2 id="例">例</h2> - -<pre class="brush:js; line-numbers language-js"><code class="language-js">window<span class="punctuation token">.</span><span class="punctuation token">on</span><span class="string token">gamepadconnected =</span> <span class="keyword token">function</span><span class="punctuation token">(</span>event<span class="punctuation token">)</span> <span class="punctuation token">{</span> - <span class="comment token">// All buttons and axes values can be accessed through</span> - event<span class="punctuation token">.</span>gamepad<span class="punctuation token">;</span> -<span class="punctuation token">}</span><span class="punctuation token">;</span></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('Gamepad ', '#event-gamepadconnected', 'gamepadconnected event')}}</td> - <td>{{Spec2('Gamepad')}}</td> - <td>初版</td> - </tr> - </tbody> -</table> - -<h2 id="ブラウザの互換性">ブラウザの互換性</h2> - - - -<p>{{Compat("api.Window.ongamepadconnected")}}</p> - -<h2 id="参照">参照</h2> - -<ul> - <li>Ted Mielczarek と Robert Nyman による <a class="external text" href="https://hacks.mozilla.org/2013/12/the-gamepad-api/" rel="nofollow">The Gamepad API</a></li> - <li><a href="http://luser.github.io/gamepadtest/">Simple API demo page</a> (<a href="https://github.com/luser/gamepadtest">ソース</a>)</li> -</ul> diff --git a/files/ja/web/api/window/ongamepaddisconnected/index.html b/files/ja/web/api/window/ongamepaddisconnected/index.html deleted file mode 100644 index f9b33bb033..0000000000 --- a/files/ja/web/api/window/ongamepaddisconnected/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: Window.ongamepaddisconnected -slug: Web/API/Window/ongamepaddisconnected -tags: - - API - - Event Handler - - Experimental - - Gamepad API - - Property - - Reference - - Window - - ongamepaddisconnected -translation_of: Web/API/Window/ongamepaddisconnected ---- -<div>{{DefaultAPISidebar("Gamepad API")}}{{SeeCompatTable}}</div> - -<p>{{domxref("Window")}} インターフェースの <strong><code>ongamepaddisconnected</code></strong> プロパティはゲームパッドが切断した時 ({{event('gamepaddisconnected')}} イベントが発生したとき) に実行されるイベントハンドラーを表します。</p> - -<p>イベントのオブジェクトの型は {{domxref("GamepadEvent")}} です。</p> - -<h2 id="構文">構文</h2> - -<pre class="syntaxbox">window.ongamepaddisconnected = function() { ... }; -</pre> - -<h2 id="例">例</h2> - -<pre class="brush:js; line-numbers language-js"><code class="language-js">window<span class="punctuation token">.</span><span class="punctuation token">on</span><span class="string token">gamepaddisconnected =</span> <span class="keyword token">function</span><span class="punctuation token">(</span><span class="punctuation token">)</span> <span class="punctuation token">{</span> - <span class="comment token">// A gamepad has been disconnected</span> -<span class="punctuation token">}</span><span class="punctuation token">;</span></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('Gamepad ', '#event-gamepaddisconnected', 'gamepaddisconnected event')}}</td> - <td>{{Spec2('Gamepad')}}</td> - <td>初版</td> - </tr> - </tbody> -</table> - -<h2 id="ブラウザの互換性">ブラウザの互換性</h2> - - - -<p>{{Compat("api.Window.ongamepaddisconnected")}}</p> - -<h2 id="参照">参照</h2> - -<ul> - <li>Ted Mielczarek と Robert Nyman による <a class="external text" href="https://hacks.mozilla.org/2013/12/the-gamepad-api/" rel="nofollow">The Gamepad API</a></li> - <li><a href="http://luser.github.io/gamepadtest/">Simple API demo page</a> (<a href="https://github.com/luser/gamepadtest">ソース</a>)</li> -</ul> |