Closed Bug 860409 Opened 12 years ago Closed 12 years ago

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

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: ted, Assigned: ted)

References

Details

Attachments

(1 file)

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
Depends on: 690935
Blocks: 690937
Attachment #735887 - Flags: review?(bugs) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: