Re: [gamepad] Haptic Feedback/Controller Vibration

On 04 Apr 2014, at 17:06, Florian Bösch <pyalot@gmail.com> wrote:

> On Fri, Apr 4, 2014 at 3:45 PM, Kostiainen, Anssi <anssi.kostiainen@intel.com> wrote:
> In the initial versions of the spec we indeed considered such reuse. Here’s my recent summary:
> 
>   http://lists.w3.org/Archives/Public/public-device-apis/2014Apr/0002.html
> 
> If you have a  navigator.gamepads and a navigator.vibrator how do you know which vibrator belongs to which gamepad? And do you want to end up with a navigator.forcefeedback, navigator.flightPedals, navigator.spacemice, navigator.hapticdevice, navigator.hotas, navigator.thrustquadrant, navigator.artificialHorizons, navigator.radioPanels, navigator.touchscreens, navigator.trimPanel, navigator.missileControl, navigator.steeringWheel, navigator.carPedals, navigator.racingWheel, navigator.gearStick, navigator.joyStick, navigator.etc? And how would you know which of those belong together into one device?

One way to spec that would be to make Vibration its own interface, and say GamePad implements Vibration. For more advanced use cases (borrowing one from your list):

interface SteeringWheel {
  readonly attribute Vibration[] vibras;
};

Based on what I hear, it sounds like we’d likely need its own interface that is more capable than the current Vibration.

Thanks,

-Anssi

Received on Friday, 4 April 2014 14:36:47 UTC