Reda Ennakouri

Package-GamePad-Controller

The objective of this Package is the use gamepad in the project easily and get all functionality of treatment of the buttons.

Reda Ennakouri

NPM :

Link of the package at Npm : https://www.npmjs.com/package/package-gamepad-controller

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Install package

Install package with commande npm i package-gamepad-controller

Import Component

<template>
    <gamepad-controller />
</template>
   
   <script>
import GamepadController from "@/package-game-pad-controller.vue";

export defiault {
  components: {
    GamepadController,
  }
};
</script>

Result

Result

GitHub

View Github