Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 855 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 855 Bytes

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