W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2014

[gamepad] Add an event-based input mechanism

From: Chad Austin <caustin@gmail.com>
Date: Mon, 13 Oct 2014 00:03:30 -0700
Message-ID: <CA+dRvWjOkg3kyRFECNRdS-Q25XnfHZ5SBTfej0nHqsNnorjTZQ@mail.gmail.com>
To: WebApps WG <public-webapps@w3.org>
Just as I mentioned in my previous email to this list, I recently was asked
to review the Gamepad API draft specification.  My background is games
though I've done some scientific computing with alternate input devices too.


I'd like to make a second proposed change to the gamepad API, an
event-based mechanism for receiving button and axis changes.

The full rationale is explained in the linked article, but the summary is:

1) an event-based API entirely avoids the issue of missed button presses
2) event-based APIs don't require non-animating web pages to use
requestAnimationFrame just to poll gamepad state
3) an event-based API could (and should!) give access to high-precision
event timing information for use in gesture recognition and scientific
4) event-based APIs can reduce processing latency when a button changes
state rapidly in low-frame-rate situations

Chad Austin
Received on Monday, 13 October 2014 07:03:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:31 UTC