#tauri #gamepad #polyfill #tauri-plugin #joystick #web-api #gilrs

tauri-plugin-gamepad

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

1 unstable release

0.0.2 Dec 13, 2023

#2 in #gilrs

Custom license

475KB
141 lines

Tauri Plugin Gamepad

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

demo

It's built on top of gilrs library.

Supported platforms (from gilrs)

Input Hotplugging Force feedback
Linux/BSD (evdev)
Windows (XInput)
macOS
iOS
Android

Development

Run npm run watch to transpile TypeScript API layer.

Run example demo using these commands:

cd examples/tauri-app
npm run tauri dev

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

License

MIT

Copyright (c) 2023 Eugene Hauptmann

Dependencies

~21–67MB
~1M SLoC