[Gamepad] Allow passing both an analog and digital value for buttons

RESOLVED FIXED in mozilla24

Status

()

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: ted, Assigned: ted)

Tracking

unspecified
mozilla24
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Currently the GamepadService only allows passing in a digital value representing pressed or not pressed, but the spec requires exposing buttons as a double to support analog buttons. This lets the platform backends pass in analog values as well, although none of them currently do. (The XInput backend will be able to use this.)

I'd like to change the spec to expose both the analog and digital values, since I think that'd be useful. I filed a spec bug on this recently:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21388
Created attachment 735887 [details] [diff] [review]
Allow passing both an analog and digital value for buttons
Attachment #735887 - Flags: review?(bugs)
Depends on: 690935
Blocks: 690937
Attachment #735887 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/231754e0dbcf
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.