Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamepad trigger-rumble and associated updates #34442

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
mark type as deprecated
  • Loading branch information
chrisdavidmills committed Jun 28, 2024
commit fa06c5863e18a669a4936003992d7773a977dbb4
4 changes: 2 additions & 2 deletions files/en-us/web/api/gamepadhapticactuator/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ This interface is accessible through the {{domxref("Gamepad.hapticActuators")}}

- {{domxref("GamepadHapticActuator.effects")}} {{ReadOnlyInline}}
- : Returns an array of enumerated values representing the different haptic effects that the actuator supports.
- {{domxref("GamepadHapticActuator.type")}} {{ReadOnlyInline}}
- : Returns an enumerated value representing the type of the haptic hardware.
- {{domxref("GamepadHapticActuator.type")}} {{deprecated_inline}} {{ReadOnlyInline}}
- : Returns an enumerated value representing the type of the haptic hardware. This property is deprecated: use `GamepadHapticActuator.effects` to detect effect support.

## Instance methods

Expand Down
6 changes: 5 additions & 1 deletion files/en-us/web/api/gamepadhapticactuator/type/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ title: "GamepadHapticActuator: type property"
short-title: type
slug: Web/API/GamepadHapticActuator/type
page-type: web-api-instance-property
status:
- deprecated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These days the source of truth for deprecated is BCD, which auto-fills this value and auto-adds macro calls. So unless the BCD for this property also marks it deprecated, this will get un-fixed again next time the script runs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good call. I've just done that.

browser-compat: api.GamepadHapticActuator.type
---

{{APIRef("Gamepad API")}}
{{APIRef("Gamepad API")}}{{deprecated_header}}

The **`type`** read-only property of the {{domxref("GamepadHapticActuator")}} interface returns an enumerated value representing the type of the haptic hardware.

This property is deprecated: use {{domxref("GamepadHapticActuator.effects")}} to detect effect support.

## Value

An enumerated value representing the haptic hardware type. Currently available types are:
Expand Down