Skip to content

Releases: KW-M/virtual-gamepad-lib

v0.3.0

26 Nov 03:37
934f1c8
Compare
Choose a tag to compare
  • 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.3.0

v0.2.0

27 Sep 18:13
e1b9e26
Compare
Choose a tag to compare
  • Fix: package.json scripts 62beb4b c2bb534
  • Fix: Tsdoc code comment warnings 74b373e
  • Update Readme to reflect new import structure 177c127
  • Rearranged package structure to publish only /dist. Update changelog, readme & license 5c30ed9

v0.1.3...v0.2.0

v0.1.3

27 Sep 15:48
07b4f87
Compare
Choose a tag to compare
  • 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...v0.1.3

v0.1.2

04 Sep 21:39
f12e38b
Compare
Choose a tag to compare
  • 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.2

v0.1.1

17 Jul 01:25
af63cf0
Compare
Choose a tag to compare

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.1.1

v0.0.4

13 Oct 03:11
Compare
Choose a tag to compare
v0.0.4 Pre-release
Pre-release
  • improve exports for modern node too.

v0.0.3-beta

12 Oct 04:34
Compare
Choose a tag to compare
v0.0.3-beta Pre-release
Pre-release
0.0.3