Vue use gamepad

Vue use gamepad documentation site

Browser API

The package uses the standard browser API and simplifies the process of using it with Vue

Vue-Powered

Enjoy the dev experience of Gamepads within Vue.

As Easy as 1, 2, 3

# install in your project
npm install vue-use-gamepad --save-dev
1
2
// Add library to vue instance
import { createApp } from 'vue'
import App from './App.vue'
import useGamepad from 'vue-use-gamepad'

const app = createApp(App)
app.use(useGamepad)
app.mount('#app')
1
2
3
4
5
6
7
8