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
gelderen
Posts: 1
Hi,

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?
Thanks,
Eelco
2022-05-14 15:32
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

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
icon