MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
Tomoski
Posts: 17
Supporter
Hi, have managed to programme switches and annuns but am stumped with momentary push buttons ( for Stall warning test & Mach airspeed warning - PMDG 737). Have tried all sorts of settings including left mouse param and event id’s but every time the alarm stays on when I release the button!! A can anyone advise before I run out of hair to pull out!! Thanks.
2021-07-07 00:34
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Tomoski,

if you config a push-button (or a switch) evaluated as pressed then MobiFlight only can react, if you press the button. If you release the button, MobiFlight does this detect but if you do not create a config for the case "OnRelease" nothing will happen.

So if you made a config for your button for OnPress with an EventID and a parameter, change over to the tab OnRelease and use the same EventID with a parameter.
If you have used the parameter for OnPress like MOUSE_FLAG_LEFTSINGLE (536870912) use in the tab OnRelease the Parameter MOUSE_FLAG_LEFTRELEASE (131072).

Give it a try and please report the result.
Grüße,
Stephan (Time: UTC+2)
2021-07-07 16:41
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Just to avoid Confusion.....

Stephans hint is correct.... And using "On Release" with "Left Release Parameter" is for some tricky elements the solution !
BUT
This is NOT the regulary process..... 99% of "Virtual Momentarys" are working fine with just a Press Command ( Left Single) . Using releases for a momentary switch is technical wrong and is only done for systems that are a little "buggy" in the PMDG itself !

Summary: NOT reowrk all your coinfigs and include the Release..... Most of them will work without it already fine !

About Problem....
Please share the used EventID and what PMDG/Sim you use.
May this is not a Momentary System in the Sim..... Then "maybe" we need another logic!
PMDG is fine if you build same switch as used in Sim..... If you use a Momentary but in sim it´s a latching then it not work !
Good Luck !
2021-07-07 21:58
Avatar
Tomoski
Posts: 17
Supporter
Hi Stephan, thanks for the advice, it worked!! I thought I had tried just about every configuration but missed the MOUSE_FLAG_LEFTRELEASE. I used this in the ‘on release’ segment and all is well. Thanks once again.
2021-07-11 18:04
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Fine! You are welcome.
Grüße,
Stephan (Time: UTC+2)
2021-07-12 01:21
icon