Commit graph

14 commits

Author SHA1 Message Date
Emily Easteal
49facd781f reduce CPU usage from constant polling
On my computer, plover is one of the most resource intensive processes when using this plugin.
This is because the USB polling occurs in a loop with no sleep.
The code as it was, polled for USB information in excess of 1600 times a second.
This commit adds in a sleep to reduce that down to 6 to 7 polls a second.
A sleep of 0.15 seconds was chosen as this in excess of 5 strokes per second - the fastest I could find.
Additionally, the delay doesn't introduce significant lag to realtime output.
2021-06-09 12:48:17 +01:00
Ted Morin
f343d16767
Merge pull request #1 from Elktro/master
Add try-catch for USB device set_configuration()
2021-04-13 13:53:52 -07:00
Ilkka Pohjalainen
92e97ab880 Add try-catch for USB device set_configuration()
Needs to be added in order to get access denied erro when
sufficient permissions. Affects Linux platform.
2019-08-02 17:18:19 +03:00
Ted Morin
43b558d8ac Pad data to 8 bytes, remove * imports 2018-05-27 21:27:19 -04:00
Ted Morin
db9fb0e32d Version 0.0.4 2018-05-22 09:38:36 -04:00
Ted Morin
32bad8706c Fix support for Protege 2018-05-21 13:40:29 -04:00
Ted Morin
04332c939b v0.0.3 2018-02-27 11:18:41 -05:00
Ted Morin
bf9e6d8a89 Ensure pyusb is is not installed on Windows 2018-02-27 11:07:17 -05:00
Ted Morin
5675ad6171 v0.0.2 2018-02-26 22:48:55 -05:00
Ted Morin
5e60f74978 readme: explain where to get drivers 2018-02-26 22:48:35 -05:00
Ted Morin
4718c00c77 Simplify readme 2018-02-26 22:34:33 -05:00
Ted Morin
4d3017912e Refactor code 2018-02-26 22:27:32 -05:00
Stanley Sakai
52eece316b Convert to plugin 2018-02-26 22:27:07 -05:00
Ted Morin
f90d4dfc94 Initial implementation of Stenograph USB 2018-02-26 22:26:43 -05:00