Skip to content

Besides allowing raw access to the xinput device, it also provides a small wrapper class which emits events based on controller input.

Notifications You must be signed in to change notification settings

oRiamn/device-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Device Tracker

Node.js xinput api implement for linux

Besides allowing raw access to the xinput device, it also provides a small wrapper class which emits events based on controller input.

Install

Requirements

xinput for linux. Docker for building application.

Build

Clone the project.

Install this project with this command :

make build

Unistall

Unistall this project with this command :

make clean

Usage

For identify your device id folow this command :

xinput --list

Edit ./MakeFile for define input identifiers to watch. You can use -w option multiple times. For example :

./build/run -w ID1 -w ID2

After that build and run with this command :

make run

About

Besides allowing raw access to the xinput device, it also provides a small wrapper class which emits events based on controller input.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published