Open Bug 1286699 Opened 6 years ago Updated 2 years ago

Port gamepad platform-specifics to Rust


(Core :: DOM: Device Interfaces, defect, P3)




Tracking Status
firefox50 --- affected


(Reporter: qdot, Unassigned)



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 ( as a lark, but I didn't get around to it. It ought to be mostly straightforward.
Priority: -- → P3

There is now providing cross-platform gamepad support in Rust. Is it possible to use this crate in Firefox?

You need to log in before you can comment on or make changes to this bug.