Open
Bug 1286699
Opened 8 years ago
Updated 2 years ago
Port gamepad platform-specifics to Rust
Categories
(Core :: DOM: Device Interfaces, defect, P3)
Core
DOM: Device Interfaces
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox50 | --- | affected |
People
(Reporter: qdot, Unassigned)
References
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.
Comment 1•8 years ago
|
||
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.
Updated•8 years ago
|
Priority: -- → P3
There is now https://gitlab.com/gilrs-project/gilrs providing cross-platform gamepad support in Rust. Is it possible to use this crate in Firefox?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•