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

adding a new HID device each second? #21

Open
xamber123 opened this issue Oct 25, 2017 · 2 comments
Open

adding a new HID device each second? #21

xamber123 opened this issue Oct 25, 2017 · 2 comments

Comments

@xamber123
Copy link

Hi, this is my code: https://pastebin.com/GGEKdHSR

When this code runs, the /devices/virtual/input/inputXXX increases with +1 increment each second.
https://puu.sh/y6BFb/f27e8004a2.png (screenshot)

@Venryx
Copy link

Venryx commented Dec 28, 2017

Move the while continue_reading: line inside/under the with uinput.Device(events) as device: block?

@fedekrum
Copy link

This is your mistake. You are creating devices inside the loop.

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

3 participants