piston icon indicating copy to clipboard operation
piston copied to clipboard

Xbox One-compatible controllers events not firing

Open sophiajt opened this issue 6 years ago • 2 comments

Not sure how fleshed-out the controller/gamepad support is in Piston, yet. I saw that you could receive the events. While I was able to get key- and mouse-related events working, I wasn't able to see any of the controller events firing.

Just to be sure the device was working, I fired up Steam and it seems to be okay there.

Is this expected to work? If so, are there additional setup steps?

This is on a Razer Wildcat, which is supported out of the box in Windows 10 as a Xbox One-style controller.

sophiajt avatar Mar 20 '18 05:03 sophiajt

You probably need the pistoncore-sdl2_window backend.

bvssvni avatar Mar 20 '18 11:03 bvssvni

Ah! that makes sense. So for the glutin backend to work, they'd need to add controller support to glutin, which piston would then expose. Got it.

Would be great to be able to statically detect you're checking for an event type the current backend doesn't support.

sophiajt avatar Mar 20 '18 16:03 sophiajt