DEV Community

Gamepad Input with Rust (cont.)

jeikabu on September 27, 2018

Continuation of my previous work handling gamepad input with Rust. hidapi DS4 Using hidapi to obtain DualShock 4 (PS4) input is also st...
Collapse
 
17cupsofcoffee profile image
Joe Clay

Another potential option - there's a library called gilrs which provides an abstraction over the platform-specific APIs for gamepad input. The ggez framework (which is in the process of moving away from SDL with the aim of not having any C dependencies) is planning on using it going forward, and I believe the Amethyst engine already does. The main issue with it at the moment is the lack of OSX support, but it sounds like they're planning on getting that sorted sooner rather than later.

Just to add even more confusion to the mix :)

Collapse
 
jeikabu profile image
jeikabu

Nice! Thanks for the tips, that definitely gives me more to look into.