Releases: KW-M/virtual-gamepad-lib
Releases · KW-M/virtual-gamepad-lib
v0.3.0
- v0.3.0 8509d3f
- New preset function makes it easy to get started with the preset gamepad SVG and customize later.
- Support for 8-way dpads (diagonal directions) - see simple & custom gamepads examples
- Improved consistency & file size for default gamepad SVGs - SVGs and necessary CSS can now be imported from the NPM library for use with bundlers & build tools.
- Improved & Updated SVG Optimization script to SVGO 3
- This is the recommended way to create custom SVG gamepads.
- Now supports proper global collision hash prefixes and correct layer name parsing from Adobe Suite, Afffinity Suite & Others.
- Can be imported from the NPM library, make sure to install peer dependencies (only SVGO at this point)!
// put this in a file called svgo.config.js in your project folder: import SvgoConfig from "virtual-gamepad-lib/svgo.config.js" export default SvgoConfig
- Improved vector SVG authoring tips.
DEPRECATED:
- Joystick direction arrows/"highlights" have are deprecated to be removed in the next release - they are fairly niche feature that can easily be re-implemented with extraData in the joystick config and a custom joystickDisplayFunction - SEE custom gamepads example.
v0.2.0
v0.1.3
- update package dependencies and fix test changes 006ead4 a862e18 5fd0b25
- improve gamepadDisplay events to avoid bind(this) b4b9cea
- tighten typescript definitions to make editing readonly values throw a TS warning. Code readability improvements. 6e8202d
- fix: gamepadApiWrapper now working when emulator is active but native gamepad support is missing. Reduced window object pollution. 1b3a4ef
v0.1.2
- Add cleanup() function to GamepadApiWrapper 21a25d3
- remove and clarify extraneous console messages 8554947
- examples stylistic consistancy improvements 8a54166
- Add sideEffects = false for better treeshaking at compile time. 27b4793
- remove redundant assets 99fc352
- Change Typedoc Theme for better consistancy with latest typedoc + Match example page to theme colors 8ce19b8
- Fix Github deploy action 8b0c215
v0.1.1
v0.1.1 - July 16 2024
- Added convenience enums for standard Xbox & PlayStation controller button maps and axes maps.
- Add support for displaying only a subset of gamepad buttons or axes in the GamepadDisplay (unused buttons should be set to undefined in the GamepadDisplay config button array).
- Organize Gamepad Vector Assets in Assets Folder 6fb4e56
- Better adherence to spec using performance.now() as timestamp thanks @jdarpinian! 74e6003
- Vitest browser testing working again 4e651ac.
- Dev Dependency update to latest versions
- Documentation improvements
v0.0.4
v0.0.3-beta
0.0.3