hebi icon indicating copy to clipboard operation
hebi copied to clipboard

Add gamepad support

Open ElnuDev opened this issue 4 years ago • 7 comments

ElnuDev avatar Sep 03 '21 18:09 ElnuDev

What's the situation like when it comes to gamepad support in the Rust ecosystem?

I know Linux basically provides an interface to pretty much a lot of controllers and gamepads, will you be making direct calls to those interfaces or looking for a more abstracted/convenient wrapper?

grtcdr avatar Sep 04 '21 02:09 grtcdr

I have no idea honestly. I think Bevy has gamepad support built-in, but I haven't looked into it yet.

ElnuDev avatar Sep 04 '21 02:09 ElnuDev

Interesting, is it cross-platform?

grtcdr avatar Sep 04 '21 02:09 grtcdr

It is. I have done builds to both Linux and Windows, and one should in theory be able to build to WebAssembly and mobile (don't quote me on that, but I think it has Android support at least) as well.

ElnuDev avatar Sep 04 '21 02:09 ElnuDev

Wonderful, I'm a controller guy myself.

grtcdr avatar Sep 04 '21 02:09 grtcdr

Nice! I'll let you know when we get gamepad support in

ElnuDev avatar Sep 04 '21 02:09 ElnuDev

Interesting, is it cross-platform?

Yeah, Bevy uses gilrs under the hood, From its README:

Supported features

  Input Hotplugging Force feedback
Linux
Windows (XInput)
OS X
Wasm n/a
Android

kroltan avatar Sep 04 '21 20:09 kroltan