Skip to content
forked from Jeflux/vgen-xbox

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

Notifications You must be signed in to change notification settings

vamidi/vgen-xbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vgen-xbox

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

Example

const VGen = require("@vamidicreations/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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%