Skip to content

Plugin Support

Jerker Dahlblom edited this page Nov 14, 2023 · 12 revisions

Overview

DCSFP supports plugins. DCSFP sends any panel events together with any keyboard key configs user has associated with the switch/knob.

Gettings Started

There is a sample project located in the DCSFP repo named SamplePanelEventHandlerPlugin. PanelEventHandler1.cs and PanelEventHandler1.cs are sample plugins which shows how the plugin should be made. Remember to reference the MEF project in your plugin.

Sample 1 Sample 2


Settings

Plugin support must be activated via Options => Settings.

plugin_settings

First option enables plugins.

Second option enabled/disables key presses being sent to the Windows API. If the plugin should handle those, click disable here.


DCSFP main UI will show all plugins found under the menu Plugins.

pluginmenu

Clicking on the plugin menu will open settings for the plugin (if there are any).

DCSFP shows information about found plugins in the bottom right edge of the UI

plugininfo


Extensions Folder

Just drop the MEF.dll and your plugin *.dll file into this folder and DCSFP will load it upon startup.