Releases: lunarcloud/gameinputjs
Published on NPMJS
Improved the README and moved publishing of packages off github and to npmjs.com - so normal people can install this without hassle.
13.2.1
Version bump and pipeline fix
13.2.0 - More Mapping, Support Combo-Axes
Ensured Support for the following:
- Hori Fight Stick Mini (all modes)
- Mayflash Arcade Stick (fixed Windows stick support)
- MAGIC-S PRO (fixed Windows d-pad support)
- 8BitDo Zero 2
- 8BitDo M30
- Afterglow Gamepad for PS3
New Axis Mapping Type
Much of the new mapping is possible thanks to the new support for d-pads and analog sticks that combine mapping of horizontal and vertical axes onto one axis. This typically happens for PlayStation support, and seems to universally be on Axis 9.
See class CombinedAxesAsStick
and the new SchemaButtonDef
type CombinedAxisToButton
.
13.1.0
Made it easier to use the "ordinal" feature - to get the primary/secondary button instead of just face->down and face->right (because nintendo is right-to-left direction).
13.0.1 - More Buttons, Standard-like Mappings
For Library Users
We now support the "back" or "select" button, as well as the two analogue stick "push in"/"stick click" buttons.
The demo has been simplified and is a better example of how to use the library than it used to be.
We've dropped support for "DetectedBrowser" - the library doesn't need it and it never supported many browsers anyway.
For Internal developers
The gamepad button mappings have all been re-worked so it's easier to contribute to. The biggest thing is that the indexes match the Gamepad API, 0-based, so no more trying to add/remove "1" in your head when writing a new gamepad mapping.
12.3.1 - JoyCon Support
The big feature is Joycon support.
P.S.
Seems like on windows this only works for Chrome and for Linux this only works for Firefox.
I can only make sure to recognize and map them where they show up in the API.
12.2.2 - Fixed Model Definitions
Fixed a bug that prevented the new DualSense and Xbox Series controllers from being detected if they were defined as non-OS-dependent.
12.2.1 - Packaged for NPM
We are now published automatically on release as a package you can include via NPM.
12.2.0 - Now available via NPM
Releases should now publish as NPM packages.
12.1.0 - Now it Makes (Dual) Sense
Added more gamepad models, particularly the Playstation 5's DualSense and Xbox Series Wireless (and Wired) gamepads.
Demo is a bit cleaner looking and removed the "theme" property that was confusingly unused in the player.