mirror of
https://github.com/workinghard/jslisten.git
synced 2025-12-13 19:02:09 +00:00
4559dd173de549b2c45cbcb590d64cf607eefe0c
jslisten
Index
Overview
This program listen in the background for gamepad inputs. If a special button combination is getting pressed the provided command line will be invoked.
It's basically a copy of jstest and udev example implementations.
Main purpose for this development is a switcher between Kodi and Retropie with the PS3 controller.
Requirements
If you have many different /dev/inputs, you might adjust this program to search for special one.
Installation
Following example for Raspbian. Should work for many other distributions almost the same way.
- Use the precompiled binary in /bin or run "# make" to get the binary
- Place the binary to "/opt/bin" (if you change the folder, please update your init script)
- Copy the init script "utils/jslisten-init" to "/etc/init.d/jslisten"
- Execute "# update-rc.d jslisten defaults" to make the daemon run on startup
Languages
C
85.8%
C++
8.3%
Shell
5.4%
Makefile
0.5%