Search the Community
Showing results for tags 'event'.
Hi, I am a registered user of FSUIPC7, with which I have been able to make lots of things for years. I thank the authors a lot for this excellent software. Today, I have got a small difficulty : I want to use the "ENG1" button of my Airbus Throttle TCA (from Thrustmaster). I wrote a Lua script with event.button ("H" , 2 , "my function") . When I push the button, the event accesses correctly to "My Function" . But when I release the button, there is no managed event. Nothing happens (checked in the log of the console) I also tried "event.button ("H" , 2 , downup, "my function") : again no reaction on release. Now, I tried to use Assignments + Buttons (in the menu) , with assigning one lua for Button-press and a second lua for Button-release. It works perfectly well. Do you have an idea of why it works with KeyPress and not with event.button ? Thank you in advance.
Pete, I'm hoping you can help me. I've been making some new XML gauges and have looked at many different event lists including the big one provided in the Modules folder for FSUIPC offsets. I'm stuck on finding the events for the common Alt+Enter (toggle full screen off /on) and for Alt (toggle main menu off / on) keyboard commands. Secondly, I'm trying to create gauges for a second instance of "opening doors / exits" (TOGGLE_AIRCRAFT_EXIT) as some large aircraft have a secondary exits function as well several engine starts too. There is obvioulsy the default engine start (ENGINE_AUTO_START) event for any single engine but I'm wanting to code start ups for the number 2, 3, and 4 engines. As is, I think they are all "shift +" types of commands so I'm wondering how I might create a workaround to make each of these into a single mouse click gauge. I've also posted in FSDeveloper but have not gotten a firm answer from anyone yet. With all of the toggle types the end goal is to use two bitmaps so you can tell when the toggle is active (on) or inactive (off). I've also noticed many events are toggles even though they do not actually say toggle like the pause and parking brake events. I've made gauges for those successfully using FS9 XML and they work great but with others I've gleaned that I need to have a different <value> parameter so any added help or advice on this would also be appreciated. Thanks for the help and support. Jeff.