diegov / gamepad_monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gamepad_monitor

A simple tool that detects the "home" button on gamepads. It exits with 0 if the button was pressed.

It uses gamecontrollerdb.txt from https://github.com/gabomdq/SDL_GameControllerDB

It's useful as a startup script to start an application automatically when the home button is pressed, eg:

while ./gamepad_monitor; do
    steam -tenfoot
done

Building

It requires cmake and SDL2 development libraries.

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Licence

GPL v3. gamecontrollerdb.txt has its own licence, see LICENCE.gamecontrollerdb.txt

About

License:GNU General Public License v3.0


Languages

Language:C++ 73.5%Language:CMake 23.0%Language:Shell 3.6%