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
Mishkacat
Posts: 13
Supporter
Hi,

Been trying to get this to work for ages with no luck. I have setup a button box to change my views around the cockpit - got this to work fine with a Leo Bodnar board connected with the latest version of FSUIPC - I just use key commands - so thought I would try doing this with an Arduino Mega (clone) with MF. I know all of the buttons work but having setup the MF config correctly (at least I think so) Mobiflight refuses to read most of the key commands.

For example I have a key stroke - Shift 3 - to show the PMDG 737 FMC but MF refuses to see it - also a key command of Ctrl+Alt+L for the view of the left window but again nothing. If I set a command of Z to activate the autopilot this works fine. By the way if I enter Shift+3 it shows in MF as Shift+D3 - not sure why this is.

Can anyone help as this is sending me mad trying to fix this or does MF need to be set up a different way to read key presses.

I tried running MF with logging but this showed no key presses - it's a brand new Elegoo Arduino board which I think are a better quality than most clones so it should be working ok - I also have another cheaper Chinese board but I get the same thing.

Help!

Dave
2018-02-05 18:20
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Keypresses are not my specialty.... Maby other advanced users can help you better.

Basic Rules:
1. Get shure the Simulator is in ACTIVE Window..... Maby Keypresses are transmit correct only to the current active window.
2. Run Simulator AND Mobiflight in "Admin Mode" ... Myself i run all programms in Admin Mode.... Without problems.
I remember in past people report for example that mobilight send "x" alsways as "xx" (double).... that was solved with Admin mode for both programms. "Maby" your problem is the same.

****
About your situation:

You give your awnser partially youreself.....
I NOT think your Arduino is the Problem. You said it work if you use "x" instead of Shift-x OR "Shift-STRG-x".....
To test you buttons ( Arduino hardware) simply set "single keys" for every button.... For example "x" for all inputs..... Push every button and you see if buttons are work fine.
I´m pretty shure your problem is only if you use double commands like Shift+x or tripple commands like Shift+STRG+x.


Additional Note:
In another game (farming simulator) i had a problem in the Past with my Gaming Mouse that work with Key Macros, too.
There i learn.... For example "Shift-F" can be used in 2 Different Ways.....
1. Shift and F is send same time in same moment.
2. Shift is pushed aloane, hold and then F is pushed while Shift is already hold.
Both Macros are occure in different results.... I Got programs that accept both ways.... BUT i got a programm that required the second way.... On first Way the combination was not work.

******
Solution:
If you like you can make some tests for us to find the problem:
Basicly get shure you use a command not in multiple Systems..... If you use for example "Shift-x" then it should be used in FSX or PMDG or FSUIPC.... But NOT in multiple systems same time.... If you use it for example in PMDG internal Options Menu check before that same combination is NOT in use by FSX/P3D or in FSUIPC !!!

So for testing check a 2 Button (Shift-x) and a 3 Button (Shift-STRG-x) and define it at first ONLY in FSX/P3d.... Does it work ???
THEN Delete the FSX/P3D Entry and use the same combinations ONLY in PMDG... Does it work ?
Finaly if you have a registred FSUIPC..... Delete the Keys in PMDG/FSX and use it ONLY in FSUIPC.

******
Please report if ADMIN Mode helps already.... If NOT Please tell us the result of the testing ! Maby you can find out where exactly the problem is !
Thank You !
Good Luck !
2018-02-06 00:17
Avatar
Mishkacat
Posts: 13
Supporter
Thanks for your detailed reply.

I have done some further testing and have done what you have suggested. I have been running MF & P3D as Admin.

MF still does not recognise some key presses but I think I may have found the problem. I use P3D v4.1 with the PMDG 737. I also use Chaseplane for the cockpit views (should have mentioned this before - sorry). I have the views setup with key presses so for example O is the overhead, Ctrl L is the left view etc.

None of these keys combinations are used in PMDG or FSUIPC. If I connect a Bodnar board I can get FSUIPC to set button presses that will use the Chaseplane key combinations and it works great but using the Arduino board with MF none of the key presses work so I assume MF will not work with Chaseplane - unless a power user out there knows how to do it. I can get the buttons to work by using events and parameters but not key presses or key combinations.

To be honest it's not a big deal as I can just go back to the way I was doing it before but it would have been nice to use MF as it seems to offer more options. I tested just using single key options, no combinations but MF still would not see the key presses.

It is interesting that the problem also may be key combinations being sent too quickly for them to execute but I did not understand if there is an option in MF to solve this.

I will continue to fiddle with this and will post any solutions I may find - anyone with any ideas please post as well.

Thanks

Dave
2018-02-06 12:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Your information still confusing me.... But i think this is a problem of my bad english and wrong phrases and translation.

iconMishkacat:


MF still does not recognise some key presses .....
I tested just using single key options, no combinations but MF still would not see the key presses.



Mobiflight NEVER can "see" a Keypress.... It only can send it ! ( But i think you mean it correct but explane it wrong)
Mobiflight just "see" the Button/switch INPUT from the Arduino and will execute a virtual Keypress then.

As i told.... Please use Debug String in Mobiflight or simply set a Keycommand that work fine ( like a single key "g" ) for ALL Input Buttons and test each one.... Then you get shure your HARDWARE is working fine !

****
Finaly you confuse me again with that statement....
iconMishkacat:


If I connect a Bodnar board I can get FSUIPC to set button presses that will use the Chaseplane key combinations and it works great but using the Arduino board with MF none of the key presses work so I assume MF will not work with Chaseplane - unless a power user out there knows how to do it. I can get the buttons to work by using events and parameters but not key presses or key combinations.



I don´t know the AddOn Chaseplane myself but in a short overview i see you can simply set Keys for the actions of the AddOn....
So What do you mean with "get FSUIPC to set button presses that will use in Chaseplane" ???
If you define this combination in Chaseplane then FSUIPC is not involved..... The Button you use ( For example by push on your keyboard) is directly recognized by chaseplane....

In next part you say your buttons work with events and parameters but not by keypress ..... What do you mean here ?
Do you talk about Mobiflight internal ( that EventID is working but Keypress is not working) ... Or do you talk about the reciving Programm ?
So that you mean.... a Keypress like "STRG-F" is recognize by FSUIPC ( and you can set a funtion there) BUT it´s not recognize by Chaseplane ???

****
Last Note:
Mobiflight use a pretty simple Keypress Logic.... We already find out in the past that a REAL Key from Keyboard work different like a simulated key in Mobiflight. ( For example in Xplane there are bigger problems, too)
Maby the Bodnar is working much better here and simulate the presses in another way.
My solution.... If Problems are still with that AddOn.... I recommend to use a Bodnar or another technic for this.... If ALL OTHER is working fine then i think its aceptable.
Good Luck !
2018-02-06 14:18
icon