Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add /etc-based hook handler for joystick events #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zacchiro
Copy link

I've written this UNIX-like event handler / hook runner for joystick events for my own needs, but I guess it might be useful to others.

It allows to react to joystick events by simply dropping executable scripts under specific /etc/joystick.d/ subdirectories. The hook scripts can be in any language and even just symlinks to other executables available on the system. I believe this might lower the barrier for using the joystick, as one not even needs to write in Python to simply plug the joystick into existing system executables.

Note that there is a dependency on run-parts (8), which is specific to Debian and its derivatives. The dependency is satisfied on Raspbian, but might not be on non-Debian based RPi distros.

Copy link

@rzr rzr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may the joystick-handler script named to have .py suffix?
then it can be installed and optionally symlinked to ../bin/ joystick-handler ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants