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

Is it possible to avoid sending the joystick events to the operating system after being handled? #91

Open
BeayemX opened this issue Jan 29, 2019 · 1 comment

Comments

@BeayemX
Copy link

BeayemX commented Jan 29, 2019

I boot my Pi to the command line and start a python script with cron to display system stats on the sensehat.
The joystick can be used to adjust some settings of the displayed pixels.

Due to the fact that the joystick events are being passed through to the command line it is possible to go through the bash history and execute these commands when pressing the joystick.

Therefore I would like to prevent all events coming from the joystick from being processed anywhere else on the system.

Is this possible?

@XECDesign
Copy link
Contributor

It is certainly possible, but I don't know if this library exposes that functionality.
Take a look here - https://python-evdev.readthedocs.io/en/latest/tutorial.html#getting-exclusive-access-to-a-device

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

No branches or pull requests

2 participants