diff options
| author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
| commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
| tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/fa/web/api/gamepadevent/index.html | |
| parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
| download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip | |
remove retired locales (#699)
Diffstat (limited to 'files/fa/web/api/gamepadevent/index.html')
| -rw-r--r-- | files/fa/web/api/gamepadevent/index.html | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/files/fa/web/api/gamepadevent/index.html b/files/fa/web/api/gamepadevent/index.html deleted file mode 100644 index 292215959f..0000000000 --- a/files/fa/web/api/gamepadevent/index.html +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: GamepadEvent -slug: Web/API/GamepadEvent -translation_of: Web/API/GamepadEvent ---- -<pre class="syntaxbox notranslate">{{APIRef("Gamepad API")}}</pre> - -<p>The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events {{domxref("Window.gamepadconnected")}} and {{domxref("Window.gamepaddisconnected")}} are fired in response to.</p> - -<h2 id="Constructor">Constructor</h2> - -<dl> - <dt>{{domxref("GamepadEvent.GamepadEvent","GamepadEvent()")}}</dt> - <dd>Returns a new <code>GamepadEvent</code> object.</dd> -</dl> - -<h2 id="Properties">Properties</h2> - -<dl> - <dt>{{ domxref("GamepadEvent.gamepad") }} {{readonlyInline}}</dt> - <dd>Returns a {{ domxref("Gamepad") }} object, providing access to the associated gamepad data for the event fired.</dd> -</dl> - -<h2 id="Examples">Examples</h2> - -<p>The gamepad property being called on a fired {{domxref("Window.gamepadconnected")}} event.</p> - -<pre class="brush: js notranslate">window.addEventListener("gamepadconnected", function(e) { - console.log("Gamepad connected at index %d: %s. %d buttons, %d axes.", - e.gamepad.index, e.gamepad.id, - e.gamepad.buttons.length, e.gamepad.axes.length); -});</pre> - -<p>And on a {{domxref("Window.gamepaddisconnected")}} event.</p> - -<pre class="brush: js notranslate">window.addEventListener("gamepaddisconnected", function(e) { - console.log("Gamepad disconnected from index %d: %s", - e.gamepad.index, e.gamepad.id); -});</pre> - -<h2 id="Specifications">Specifications</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - <tr> - <td>{{SpecName("Gamepad", "#gamepadevent-interface", "GamepadEvent")}}</td> - <td>{{Spec2("Gamepad")}}</td> - <td>Initial definition</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2> - -<p>{{Compat("api.GamepadEvent")}}</p> - -<h2 id="See_also">See also</h2> - -<p><a href="/en-US/docs/Web/Guide/API/Gamepad">Using the Gamepad API</a></p> |
