Closed Bug 1156424 Opened 10 years ago Closed 9 years ago

Clean up storage of gamepads in GamepadService/nsGlobalWindow

Categories

(Core :: DOM: Device Interfaces, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: qdot, Assigned: qdot)

References

Details

Due to reasons neither of us can remember, we're using a hashtable to store gamepads in content processes. This could probably be made much simpler with an nsTArray.
Actually, this is a valid use of hash tables. Since content processes can have per-process gamepad index assignments (versus the parent process dictating them), this is an easy way of keeping track of used indexes.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.