Jump to content
Sign in to follow this  
joeherwig

long-press + double-press (TripleUse.lua) in LINDA GUI

Recommended Posts

Hi ScotFlieger, hi devs,

I was fiddling around with Pete Dowsons "TripleUse.lua" which allows to assign also functions to single press, release like in LINDA and also doublePress and longPress functions.

As i found that thread and figured out, that it is not possible to contribute via Fork + PR, i'd kindly ask whether adding those double-press and long-press functions for assignment in LINDA as it would be ways more convenient than doing that in lua scripts.
Do you think that might be a future feature?

Best regards,  Joe

Share this post


Link to post
Share on other sites

I was not aware of the TripleUse.lua and it is not something that has been requested to date. I can see that such a change would require a major redesign of the GUI to allow the additional actions to be assigned.

With 3 active versions of LINDA to support different FSUIPC/Flt Sim combinations, I have no plans to do any major code changes such as this. 


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Share this post


Link to post
Share on other sites

Hi Andrew,

Thanks for your reply anyway.

But probably you can give me a hint, how i can access the functions defined in LINDA\lib\lib-msfs.lua from other lua scripts.
See https://forum.simflight.com/topic/82630-problem-with-tripleuselua/?do=findComment&comment=553730 for details.

I'm trying to avoid copy-paste-cloning of code as it is never a good idea.
So if i could access "your" msfs functions from my TripleUse.lua directly it would help me a lot. And probably others as well.

Best regards to Scotland and have a great new year!

Joe

Edited by joeherwig

Share this post


Link to post
Share on other sites

Any LINDA LUA function can be called from elsewhere by inserting the function name into you code followed by round brackets. eg. myFunction(). Note that LUA is case sensitive and it must be typed as written.


Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Share this post


Link to post
Share on other sites

Hi Andrew,

I had tried that before of course...
Finally i only had to include two of your files in my TripleUse.lua:

dofile([[.\LINDA\libs\lib-msfs.lua]])
dofile([[.\LINDA\system\common.lua]])
...

did the magic. 🙂

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...