Re: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-26 Thread Kostiainen, Anssi
Hi Brandon, > On 22 Apr 2016, at 08:14, Brandon Jones wrote: [...] > Finally, I'd like to propose that we add gamepad vibration controls. This has > been talked about in the past as well, and the thinking has typically been > that the Gamepad API may want to try and use the Vibration API some

Re: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-25 Thread Brandon Jones
Regarding the vibration portion of the API, I'm still not sure how much control we should provide. Don't want to get too closely tied to any specific native implementation. To that end I've put together a brief document comparing the APIs that I'm aware of: https://docs.google.com/document/d/1Ms4RF

Re: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-25 Thread Brandon Jones
Lots of good feedback! Replies inline. > Do we want to know the value of the press? Does the API for the Steam Controller, for example, return the force of the press as a float? > Likewise, Pointer Events have "pressure" GamepadButton already has a "value" property, which I think would be appropr

RE: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-25 Thread Domenic Denicola
From: Brandon Jones [mailto:bajo...@google.com] > readonly attribute Float32Array? position; Just as a quick API surface comment, Float32Array? is not a very good way of representing a vector (or quaternion). You want either separate x/y/z/w properties, or to use a DOMPoint(ReadOnly). Web VR

Re: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-25 Thread Florian Bösch
On Mon, Apr 25, 2016 at 4:31 AM, Chris Van Wiemeersch wrote: > > If you take a look at all the content libraries out there for the Gamepad > API, there's a ridiculous amount of logic and special casing web developers > are having to do just between the Firefox and Chrome implementations - and > be

Re: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-25 Thread Patrick H. Lauke
On 25/04/2016 03:31, Chris Van Wiemeersch wrote: Do we want to know the value of the press? Does the API for the Steam Controller, for example, return the force of the press as a float? The reason I ask is because with Touch events, there's a `force` property on the `Touch` interface: https://dev

Re: [gamepad] New feature proposals: pose, touchpad, vibration

2016-04-25 Thread Chris Van Wiemeersch
Do we want to know the value of the press? Does the API for the Steam Controller, for example, return the force of the press as a float? The reason I ask is because with Touch events, there's a `force` property on the `Touch` interface: https://developer.mozilla.org/en-US/docs/Web/API/Touch/force