python-uinput icon indicating copy to clipboard operation
python-uinput copied to clipboard

adding a new HID device each second?

Open xamber123 opened this issue 8 years ago • 2 comments

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)

xamber123 avatar Oct 25 '17 06:10 xamber123

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

Venryx avatar Dec 28 '17 16:12 Venryx

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

fedekrum avatar Dec 21 '18 19:12 fedekrum