python-uinput
python-uinput copied to clipboard
adding a new HID device each second?
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)
Move the while continue_reading: line inside/under the with uinput.Device(events) as device: block?
This is your mistake. You are creating devices inside the loop.