gamecontroller.js

A JavaScript library that lets you handle, configure, and use gamepad and controllers on a browser, using the Gamepad API

tauri-plugin-gamepad-api

A plugin for Tauri that provides a polyfill for Gamepad Web API that works on most common platforms.