Skip to content

Comment on HTML5 XBOX Controller in Firefox Nightlyparent

Comments

Even sillier, I'm pretty sure it has 5 axes.

Left Stick X and Y, Right Stick X and Y, And another Axis used for the 2 triggers.

Yeah, I know how silly that sounds for the triggers, but that's how it works.

That does sound odd, since it's possible to detect the state of the triggers independently. The configuration utility for the Xbox Controller driver that I use allows me to map any of the physical axes to the virtual axes X, Y, Z, Rx, Ry, Rz, and Slider, so I guess that's roughly what's supported by the Windows input APIs. I don't really know how it's reported by the controller, though, other than the fact that it isn't standard USB HID.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.