[fpc-pascal] HIDAPI Bindings for FPC (on Linux)

Bernd prof7bit at gmail.com
Sat Nov 19 22:09:13 CET 2016


Hello list,

I have made a binding for libhidapi because i needed one and I could
not find any.

https://github.com/prof7bit/HIDAPI.pas
(LGPL + static linking)

It is not just an automated header translation, instead I have made it
using the good old Pascal objects (and pointers to them) to cast the
device handles into, attached Methods with Pascal-ish names to the
objects which not only wrap the original c functions but also do some
conversion of ugly wchar_t* stuff on the fly if needed and make it
much more fun to use this C API.

I hope someone might find it useful, its license compatible with other
FPC units.

-Bernd



More information about the fpc-pascal mailing list