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.
xinput for linux. Docker for building application.
Clone the project.
Install this project with this command :
make build
Unistall this project with this command :
make clean
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