Port gamepad platform-specifics to Rust

NEW
Unassigned

Status

()

Core
DOM: Device Interfaces
P3
normal
2 years ago
8 months ago

People

(Reporter: qdot, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox50 affected)

Details

This is another "Move fairly platform specific thing to Rust" task, assuming that we can mostly use established system API wrappers to make things safer.

Bindings between the platform specific portions of the GamepadAPI and the GamepadManager class are pretty simple, just events for AddGamepad/RemoveGamepad/AxisEvent/ButtonEvent. We could probably change these to callbacks, and pass them into Rust based platform specific code, rather than the C++ we have right now.
I thought about writing the Rust code for this (https://github.com/PistonDevelopers/piston/issues/884) as a lark, but I didn't get around to it. It ought to be mostly straightforward.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.