Commit cebb092
committed
VibrationActuator should limit the duration of vibration effects
https://bugs.webkit.org/show_bug.cgi?id=250415
Reviewed by Brent Fulgham.
VibrationActuator should limit the duration of vibration effects:
- https://w3c.github.io/gamepad/extensions.html#gamepadeffectparameters-dictionary
The specification recommends a maximum of 5 seconds.
* Source/WebCore/Modules/gamepad/GamepadEffectParameters.h:
* Source/WebCore/Modules/gamepad/GamepadHapticActuator.cpp:
(WebCore::GamepadHapticActuator::playEffect):
* Source/WebCore/platform/gamepad/cocoa/GameControllerHapticEffect.mm:
(WebCore::GameControllerHapticEffect::create):
Canonical link: https://commits.webkit.org/258759@main1 parent 4eaf82b commit cebb092
File tree
3 files changed
+8
-1
lines changed- Source/WebCore
- Modules/gamepad
- platform/gamepad/cocoa
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments