[fpc-pascal] USB Human Interface Devices

James Richters james at productionautomation.net
Wed Aug 28 17:13:16 CEST 2019


Thanks for the information
I'm going to end the thread if the USB device is unplugged,  so then I need the main program to also know the thread has ended so it can go back to occasionally checking to see if the device was plugged back in.

>You can find whether your thread is running or not with the readThread.Suspended property,

>but in your program, your thread is always running, it's nether suspended. It's just blocked in a call (to libusbhid_interrupt_read I guess)


More information about the fpc-pascal mailing list