Re: [webvr] [gamepad] Missing VRPose for tracked controllers

2016-05-24 Thread Brandon Jones
"Kip" Gilbert < > kgilb...@mozilla.com> wrote: > >> Brandon Jones (Google) has made some experimental WebVR Chromium builds >> that include support for the HTC Vive VR motion controls. We would like to >> propose this as a standard and update to the

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

2016-04-25 Thread Brandon Jones
/1Ms4RFTI8bz1dTtympPmkb81FLhPdls7n-mfwQoAeyAI/edit?usp=sharing Comments are welcome, especially if there's a Gamepad API that I've missed. On Mon, Apr 25, 2016 at 9:03 AM Brandon Jones <bajo...@google.com> wrote: > Lots of good feedback! Replies inline. > > > Do we want to know the

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

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

2016-04-21 Thread Brandon Jones
I'd like to propose the addition of several new features to the Gamepad API, primarily born from needs that have been identified while developing the WebVR spec , but which also cover topics that have been under discussion in the past but deemed lower priority

Re: [gamepad] Allow standard-mapped devices to have extra buttons or axes allow multiple mappings per device

2014-10-13 Thread Brandon Jones
Re: change #1, with standard gamepad mappings today (at least in Chrome) we map any buttons that don't correspond to the official standard mapping to button[17] and up. This, of course, depends on which buttons are actually visible to the browser (many devices expose buttons that can't be seen by

Re: [Gamepad] Liveness of Gamepad objects

2014-04-29 Thread Brandon Jones
I don't think that API design should be driven by implementation details, but it may be useful to provide some background on Chrome's Gamepad implementation here: The current polling-only API Chrome uses is largely due to practicality with the multiprocess architecture. The gamepad data is

Re: [Gamepad] Liveness of Gamepad objects

2014-04-29 Thread Brandon Jones
On Tue Apr 29 2014 at 10:24:48 AM, Mark S. Miller erig...@google.com wrote: I don't know anything about Gamepad. Could someone provide enough context that I can understand the question? Thanks. The Gamepad API returns an array of Gamepad state objects when you call getGamepads(), like so:

Re: [Gamepad] Liveness of Gamepad objects

2014-04-29 Thread Brandon Jones
On Tue Apr 29 2014 at 4:28:31 PM, Glenn Maynard gl...@zewt.org wrote: (That said, I'm confused--where's the event to tell the user that the gamepad has changed? Surely this API doesn't require the developer to poll, which would lose inputs at the slightest GC skip and could never give high

Re: Pointer Lock Status

2014-04-03 Thread Brandon Jones
On http://status.modern.ie/ Microsoft lists Pointer Lock as still Under Consideration On Thu, Apr 3, 2014 at 1:38 PM, Vincent Scheib sch...@google.com wrote: Implementation status: Chrome: Implemented with prefix, in stable version. Firefox: Implemented with prefix, in stable version. IE:

Re: Proposal Virtual Reality View Lock Spec

2014-03-26 Thread Brandon Jones
So there's a few things to consider regarding this. For one, I think your ViewEvent structure would need to look more like this: interface ViewEvent : UIEvent { readonly attribute Quaternion orientation; // Where Quaternion is 4 floats. Prevents gimble lock. readonly attribute float

Re: [gamepad] preventing default/capturing controller

2014-03-26 Thread Brandon Jones
Sorry, meant to respond to this earlier but wanted to make sure the relevant details were already public. Valve's upcoming Steam controllerhttp://store.steampowered.com/livingroom/SteamController/provides a good use case for an API like this. The controller's touchpads can be used to emulate

Re: [gamepad] Haptic Feedback/Controller Vibration

2014-03-23 Thread Brandon Jones
Mozilla has played around with gamepad vibration a bit already: https://bugzilla.mozilla.org/show_bug.cgi?id=680289 There's been some mixed messages, but so far the basic idea seems to be to either extend the existing Vibration APIhttp://www.w3.org/TR/2014/WD-vibration-20140211/to handle multiple

Re: [fullscreen] Problems with mouse-edge scrolling and games

2014-02-23 Thread Brandon Jones
Several points to add: - it's possible to theme the OS cursor using custom images with CSS. https://developer.mozilla.org/en-US/docs/Web/CSS/cursor/url - The reason the cursor is hidden when the pointer is locked is that some OSes don't have the ability to report relative mouse movement correctly

Re: [fullscreen] Problems with mouse-edge scrolling and games

2014-02-22 Thread Brandon Jones
Pointer lock does indeed provide a workaround for this, but it's worth noting that with the current architecture of Chrome a software cursor will experience visible lag, which these types of games are highly sensitive to. I'm not sure about the latency of Firefox or others, but in general a

[gamepad] Reasoning behind GamepadButton struct

2014-02-20 Thread Brandon Jones
if this has been addressed before, as I've only recently started working on the implementation and am not familiar with the full spec history. I haven't seen this particular point discussed in the archives, however, so I figured it was worth bringing up. --Brandon Jones