@vamidicreations/vgen-xbox

1.0.2 • Public • Published

vgen-xbox

Node wrapper for vGenInterface (xbox) to feed xinput events to Windows

Example

const VGen = require("vgen-xbox")
const vgen = new VGen();

var controllerId = vgen.pluginNext() // Plugs in next available controller
vgen.setDpad(controllerId, vgen.Dpad.UP); // Set dpad to point up
vgen.setButton(controllerId, vgen.Buttons.B, true); // Press B button
vgen.setButton(controllerId, vgen.Buttons.B, false); // Release B button

vgen.unplug(controllerId); // Unplug controller

Full example available in demo.js

Installation

Make sure you have the build tools for node-ffi. Then install with:

$ npm install @vamidicreations/vgen-xbox

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @vamidicreations/vgen-xbox

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.12 MB

    Total Files

    16

    Last publish

    Collaborators

    • vamidi