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
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Servus Sebastian !

Beim Testen für ein Userproblem bin ich auf eine etwas "seltsame" Funktion gestossen.
Kannst dir bei Gelegenheit mal ansehen. Bin mir nicht sicher ob das ein versteckter Fehler ist oder ob das mit der MF logik nicht anders geht.....

Situation:

Wir steuern mit einen Input (z.b. EINEN Button) 2 Dinge Parallel. Also wir haben eine Config die bei On Push Funktion A ausführt, und darunter eine weitere Config auf dem Selben Button Device die ON Push Funktion B Ausführt. Das Arbeitet so weit gut.... Die Obere Config wird zuerst ausgeführt.... dann die nächste !
Der "Fehler" entsteht wenn wir zusätzlich mit On Release arbeiten......

Für den Test hab ich der Einfachheit halber keine Offsets verwendet sondern schlicht "Keys" ( Das sollte sich aber auch mit EventID oder Offsets reproduzieren lassen)
Beispiel:
Config 1 ButtonX On Push : Key "A" On Release : Key "D"
Config 2 ButtonX ON Push: Key "B" On Release: Key "E"
Drücke ich jetzt die Taste und lasse sie los dann passt auch noch alles.... er schreibt A B (push)---- D E (release)

Das Problem entsteht nun wenn wir bei einer Config einen Befehl rausnehmen ( Weil wir ihn für unser Projekt nicht brauchen )

Nehme ich z.b. bei der Ersten Config den Release raus..... Dann würde man Denken das ergebnis ist A B - E ..... Es Kommt aber nur AB !
Offenbar wird jetzt der Release von Config 2 nicht mehr erkannt, weil die erste keinen Release hat.
Macht man es anders rum.... Die erste Config hat den Release... Die 2. aber nicht dann passt es... Ergebnis AB - D

Noch undurchsichtiger ist es wenn man den On Push rausnimmt....
1 Config kein ON Push aber Release....... 2. Config On Push und Release ...... Ergebnis: B - E
Jetzt wird der On Release von Config 1 verschluckt.... Aber offenbar Config 2 Sauber ausgeführt.

Selbes wenn man bei Config 2 den Push entfernt..... Ergebnis A -D Also jetzt wird der vorhande Release von Config 2 nicht mehr ausgeführt. Dafür Config 1 sauber !

********************

Wie gesagt das ist nur eine Kleinigkeit.... Wollte es dir nur mal melden falls dieser "Fehler" in der Logik begründet ist und womöglich in anderen Situationen auch zum greifen kommt wo es dann problematischer ist.

lg.
Good Luck !
2017-03-04 14:50
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Schau ich mir an! Danke für die ausführliche Beschreibung.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2017-03-07 15:01
icon