Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

I am using Linda which opens auomatically all USB connected HID devices.

How can I found the handle returned by the function com.openhid(VID, PID, unit, repno) ?

RASMIB

Posted

I am using Linda which opens auomatically all USB connected HID devices.

How can I found the handle returned by the function com.openhid(VID, PID, unit, repno) ?

 

Not sure what you mean. As you say, the handle is returned, so your Lua program has it.  It is merely a pointer into an internal FSUIPC or WideClient structure. It has no use outside of the context in which it applies. What are you wanting it for?

 

Pete

Posted

Hi Pete

I am using Linda

Linda is a nice tool as long as buttons are concerned

The problem is the displays of my Saitek Pro Flight Radio and Multi Panel

How can I command these displays ?

with your function com.write(handle, "string") of course

My concern : how can I found the handles of the HIDs open by LINDA

The HID must be opened because the buttons are reacting

I really appreciate your help

Michel

RASMIB

Posted

My concern : how can I found the handles of the HIDs open by LINDA

The HID must be opened because the buttons are reacting

 

Does LINDA use the comhid functions or simply the normal joystick button detection?

 

In any case the handle is local to the thread which created it -- you'd either need to put you code into the Lua being run by LINDA, or get it to run call your Lua functions as an external module.

 

Easier to simply use openhid in your own Lua code. With USB devices several programs can have them open at the same time, it isn't like the old serial port system.

 

Regards

Pete

Posted

I don't know how Linda opens the HIDs

It's a very good new that one USB device may be opened by several programs at the same time

Thanks and have a good day Pete

Michel

RASMIB

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.