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

Michael Van Canneyt michael at freepascal.org
Sat Nov 19 23:46:49 CET 2016

On Sat, 19 Nov 2016, Bernd wrote:

> 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.

Nice work.

I will add it to the FPC packages if that is OK with you. 
Would it be possible to provide a sample program which e.g. 
lists the available devices ?


More information about the fpc-pascal mailing list