Re: [w3c/gamepad] extensions: Add vibrationActuator and dual-rumble effect (PR #163)

@marcoscaceres commented on this pull request.



> +            </li>
+          </ol>
+        </dd>
+        <dt>
+          Construction
+        </dt>
+        <dd>
+          <p>
+            Add new steps to [=a new `Gamepad`=]:
+          </p>
+          <ol>
+            <li>If |gamepad:Gamepad| has a vibration actuator that can [=play
+            effects with type=] {{GamepadHapticEffectType/"dual-rumble"}},
+            initialize |gamepad:Gamepad|'s {{Gamepad/vibrationActuator}}
+            attribute to [=a new `GamepadHapticActuator`=] with
+            {{GamepadHapticActuatorType/"dual-rumble"}}.

Hmm.. I'm a bit confused... the `GamepadHapticActuator` seems to be both an actuator "hub" but also a place play the effects. This doesn't feel right. 


Shouldn't it be:

```
Gamepad 
   -> actuator
        ->  "dual-rumble" === "play effect on handles"
        ->  "xxxxx-rumble" === "play xxxxx on some part of the controller"
```

What's confusing is the `.type` attribute. What does it mean for `.type` to be "dual-rumble" if I can play "trigger-rumble"? 

 
 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/163#pullrequestreview-1016447979
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/gamepad/pull/163/review/1016447979@github.com>

Received on Thursday, 23 June 2022 06:25:26 UTC