boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.79k stars 432 forks source link

The keyboard devices are now getting automatically recognized and don't raise OSError when disconected #642

Open H3LL0U opened 6 months ago

H3LL0U commented 6 months ago

When the devices are disconected on Linux based systems it caused the OSError and made the program crash. Now the AggregatedEventDevice automatically creates a thread which checks if there are any new devices that have been added. It also recognises if the device has been removed and closes the thread that listened to that device's inputs. Issues:

531

639