Skip to content
Snippets Groups Projects
Commit 886c2c65 authored by Chris Martin's avatar Chris Martin
Browse files

Bug 1657404 - Implement a strongly-typed, service-dependent gamepad handle r=handyman,aklotz

Currently, the gamepad code uses a uint32_t as a handle and does some trickery
with it by trying to create a unique ID and adding an offset to it for VR code.

This can (and has) led to errors where the developer forgets to perform the
arithmetic and sends the wrong number to the wrong manager.

This change created a strongly-typed handle that remembers which service it
belongs to. This should eliminate such accidents.

Differential Revision: https://phabricator.services.mozilla.com/D96273
parent 9191a21a
No related branches found
No related tags found
Loading
Showing
with 655 additions and 489 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment