Increase threshold of gamepad joystick activation
Categories
(Core :: DOM: Device Interfaces, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox81 | --- | fixed |
People
(Reporter: tjr, Assigned: daoshengmu)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
As discussed on dev-platform, we would like to increase the threshold of joystick activation so that a slightly off joystick or a user typing or bumping their desk with the gamepad on it does not cause the gamepad to activate and be visible to a webpage.
| Assignee | ||
Comment 1•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
•
|
||
If the gamepad is the first time to be seen, we need to check if its axis move value is larger than AXIS_FIRST_INTENT_THRESHOLD_VALUE, then we will let it pass the first intent judgement.
Comment 4•6 years ago
|
||
| bugherder | ||
Comment 5•5 years ago
|
||
Hi :daoshengmu
Did you have any particular documentation requirement in mind? Looking at the docs - e.g. https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API this doesn't actually impact the API - it just makes sure that it isn't inadvertently triggered.
If not, I'll just add a release note: https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/81#Gamepad
Description
•