Skip to content

feat: add GamepadVisualizer and compatibility APIs - #186

Merged
ReenigneArcher merged 1 commit into
masterfrom
feat/gamepad-visualizer-and-compat-apis
Aug 16, 2026
Merged

feat: add GamepadVisualizer and compatibility APIs#186
ReenigneArcher merged 1 commit into
masterfrom
feat/gamepad-visualizer-and-compat-apis

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Introduces GamepadVisualizer for rendering Xbox, PlayStation, and Nintendo Switch controller artwork with live button/trigger/stick state updates. Adds getControllerImagePath() and getControllerVisualConfig() helpers, plus getCompatibilityIssues() for surfacing known browser/controller issues (e.g. Firefox + Switch mapping bug). All new APIs are covered by tests.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 12.82kB (86.59%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
gamepad-helper-array-push 20.58kB 12.82kB (165.33%) ⬆️⚠️

Affected Assets, Files, and Routes:

view changes for bundle: gamepad-helper-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
gamepad-helper.js 12.82kB 20.58kB 165.33% ⚠️

Files in gamepad-helper.js:

  • ./src/js/gamepad-visualizer.js → Total Size: 21.25kB

  • ./src/js/gamepad-helper.js → Total Size: 21.75kB

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2fa427a) to head (f402d4b).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            master      #186    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            1         2     +1     
  Lines           96       292   +196     
  Branches        30        66    +36     
==========================================
+ Hits            96       292   +196     
Files with missing lines Coverage Δ
src/js/gamepad-helper.js 100.00% <100.00%> (ø)
src/js/gamepad-visualizer.js 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2fa427a...f402d4b. Read the comment docs.

Introduces `GamepadVisualizer` for rendering Xbox, PlayStation, and Nintendo Switch controller artwork with live button/trigger/stick state updates. Adds `getControllerImagePath()` and `getControllerVisualConfig()` helpers, plus `getCompatibilityIssues()` for surfacing known browser/controller issues (e.g. Firefox + Switch mapping bug). All new APIs are covered by tests.
@ReenigneArcher
ReenigneArcher force-pushed the feat/gamepad-visualizer-and-compat-apis branch from 02ec585 to f402d4b Compare August 16, 2026 00:38
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit c8c0fc3 into master Aug 16, 2026
16 checks passed
@ReenigneArcher
ReenigneArcher deleted the feat/gamepad-visualizer-and-compat-apis branch August 16, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant