This forum is read only and just serves as an archive. If you have any questions, please post them on

7 years ago by lunarcloud

GameInput JS
I had created this library for some projects before I really started using ImpactJS, but it also includes a plugin for ImpactJS to use it.

The ImpactJS plugin hooks into the ig.input similar to how other libraries do, and allows ImpactJS handle keyboard instead of its own fallback handling.

I'm using it on my in-development games and it nicely detects the plugged-in gamepad and sets the correct icon, mapping, and button symbols.

I bought a lot of controllers, though I haven't tested them all on Windows or macOS yet, being mostly a Linux guy. I'll get around to testing everything I own on all OSes, and you're all free to contribute mappings.

Funny enough, this makes my HTML5 game support more controllers than a lot of native games (who often only support Xbox 360 and Xbox 360-pretending gamepads). Love ImpactJS and HTML5 games. :D

6 years ago by lunarcloud

Latest Release has fixes for the multiplayer which you can see an example of by playing a game jam game I did called "Gerstenberg Heroes" with multiple gamepads plugged in ( live here).

5 years ago by Xander

I switch back and forth between development on Mac and Windows. I have gamepads that only seem to work on Windows, and seem to have different mappings while on my Mac.

Would I be correct in thinking that your code seems to account for this and correct these issues?

I'm going to see if I can implement your code this week to see if it fixes the issues that I've been experiencing.

Thanks for posting this.

5 years ago by Xander

Looks like my issues is that my controller isn't firing the d-pad, it's firing the left analog instead (despite the fact that it is not an analog controller).

I'll need to figure out how to implement analog controls in the gamepads.js plugin.

5 years ago by lunarcloud

Yes, a big part of the reason the library exists is to make switching gamepads and types of computer easy.

What type of gamepad is it?

Can you use the "tester.html" to come up with sane mappings and post them to a new item in

It just sounds like an issue of not having proper mappings in "gameinput.models.js" yet.

5 years ago by lunarcloud

Also, please don't use whatever link to "latest" I used, but check for the actual latest release.

5 years ago by lunarcloud

BTW, I meant to say, use the "creator.html" to create new gamepad mappings. At some point in the future they'll just be one web page.
Page 1 of 1
« first « previous next › last »