[fpc-pascal] USB Human Interface Devices
M.Santhoff at web.de
Fri Jul 26 20:20:34 CEST 2019
On Fri, 2019-07-26 at 11:44 -0400, James Richters wrote:
> I did try fpc-usb-hid, it uses units: BaseUnix and Unix which I don't have,
> and don't know what they are. I tried commenting them out thinking maybe
> they were needed for Linux, but then it just can't find a lot of other
> things... I am on Windows and using FPX 3.0.4RC1, if the units I need are
> in a later version of FPC I can update it.
If baseUnix ans Unix are in use, the code is for unixoid OS. Linux, *BSD, etc.
The current LibUSB does support Windows, as you can see here:
But I _think_ the Pascal header adaption will need to be ported to Windows.
Maybe someone else knows better?
> A console demo would be a great help and very much appreciated, I am not in
> a huge hurry.
> -----Original Message-----
> From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> On Behalf Of
> Dimitrios Chr. Ioannidis via fpc-pascal
> Sent: Friday, July 26, 2019 6:51 AM
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Cc: Dimitrios Chr. Ioannidis <d.ioannidis at nephelae.eu>
> Subject: Re: [fpc-pascal] USB Human Interface Devices
> On 2019-07-26 13:39, James Richters wrote:
> < snip >
> > Anyone have any suggestions for an FPC only console application method
> > or demo I could use to access this USB HID device?
> < snip >
> As I suggested in my previous mail You can use the fpc-usb-hid library
> from Alfred. I don't see any dependency for Lazarus in the usbcontroller.pas
> which is, AFAIU, the main unit.
> If you're not in a hurry, I could try to make a simple console demo this
> Dimitrios Chr. Ioannidis
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org https://lists.freepa
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
Marc Santhoff <M.Santhoff at web.de>
More information about the fpc-pascal