Skip to content

Plugin Support

Jerker Dahlblom edited this page Sep 14, 2021 · 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.

https://github.com/DCSFlightpanels/DCSFlightpanels/blob/master/Source/SamplePanelEventHandlerPlugin/PanelEventHandler1.cs

https://github.com/DCSFlightpanels/DCSFlightpanels/blob/master/Source/SamplePanelEventHandlerPlugin/PanelEventHandler2.cs

Settings

Plugin support must be activated via Options => Settings. DCSFP main UI will show all plugins found under the menu Plugins and also information in the bottom right edge of the UI. You can also choose to not have DCSFP send keyboard key events to the Windows API. This is useful if you have a plugin that will do this instead.

Plugin Menu

Plugin information

Extensions Folder

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