This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21386 - Should specify how to present d-pads/triggers as buttons
Summary: Should specify how to present d-pads/triggers as buttons
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Gamepad (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ted Mielczarek [:ted]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 12:17 UTC by Ted Mielczarek [:ted]
Modified: 2015-04-24 10:48 UTC (History)
4 users (show)

See Also:


Attachments

Description Ted Mielczarek [:ted] 2013-03-25 12:17:01 UTC
Currently the spec requires implementations to express the set of controls on a controller in two arrays: buttons and axes. All of the platform APIs I've used expose a set of buttons and a set of axes, so this makes sense. However, there are also frequently some controls that aren't exposed as either of those, so some internal mapping is required. For example, d-pads are frequently exposed as a "POV hat" (since the USB HID was written in the days of actual flight-stick like joysticks).

I think we need to have some spec text that speaks to how to put these controls into the list of buttons/axes so that the list of controls are consistent across browsers (at least for the same OS+driver combination).
Comment 1 Ted Mielczarek [:ted] 2015-04-24 10:48:54 UTC
Moved to https://github.com/w3c/gamepad/issues/6