Re: picoLCD improved key input
Markus Dolze <[email protected]>
| Newsgroups | gmane.comp.sysutils.lcdproc |
|---|---|
| Message-ID | <[email protected]> |
Hello Martin, attached you find my version of your patch. Please patch against cvs HEAD. The main differences between your first version and this one: - Library (de)initialization is session based. This allows us to restrict libusb-1.0 to this driver without affecting other (future) drivers and LCDd core. - Key repeat is calculated based on actual time values instead of countdown loops. This makes the code independent from the processing intervals. - Repeat values are restricted to 0-3000ms (arbitrarily chosen) with 0 disabling it. - picolcd_close frees more memory previously allocated. The libusb-1.0 implementation compiles surprisingly well on FreeBSD if I only were able to find out about how to make configure work. This system comes with an USB library compatible with libusb-0.1 _and_ libusb-1.0, but lacks any way of detecting it with pkg-config. I spent the whole afternoon fiddling with it and ended up hard-coding the values for my system within configure.in (this is missing from the attached patch). Please give it a try. I coded blindly - it compiles but I have no idea how it behaves with a real display. Regards, Markus _______________________________________________ LCDproc mailing list [email protected] http://lists.omnipotent.net/mailman/listinfo/lcdproc
libusb-1.0_v2.patch.gz
(application/x-tar, 10.6 KB) - not displayed