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! 

Posts: 1

When I hold a keypress function, it only presses the key once, without repeating. Is it possible to program / simulate a repeated key press when holding a button?
2022-05-14 15:32
From: ETSI, Germany
Posts: 5474

Not in the base UI.

MF work currently in the basic idea that a Button Press is detected by a "Change" in the elctirc signal....
So The arduno or HID device say "Hey MF.... the Button XY have changed.... e.g. from Not pressed to Pressed.
So MF will execute the Command that is selected for "On Press" exactly ONE TIME.

In the future we plan for a "Repeater" Option.

For now you can use a little tricky workflow.....
E.g. you can read the Sim time Offset .... And you write with your Switch a Variable.... On Press = 1 on Release = 0

Then you can say something like IF Variable = 1 then take the current time and if time is e.g. a odd value like 1,3,5,7,9,
THEN execute a Command..... In easy words.... Aslong Button is HOLD it will fire a Command every 2 Seconds.
(Working also for 1/10 Seconds with right formula.

Whatever..... For the moment i recommend.... use the SIM Controlls.
You can emulate a Vjoy Button Press.
And set funtion directly in Sim if Available.
Mostly here we talk about Standard Stuff taht is available in Sim like "Trim" or so.
Good Luck !
2022-05-14 23:42