Skip to content

Commit

Permalink
[PluginService] Backport fix for "Activate a Simulator Event From Lis…
Browse files Browse the repository at this point in the history
…t" from 'next' branch.
  • Loading branch information
mpaperno committed Jul 19, 2022
1 parent 90b7578 commit 9ffe09e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MSFSTouchPortalPlugin/Services/PluginService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,10 @@ private void ProcessSimEventFromActionData(PluginActions actId, ActionData data)
// No WASM module... try to use a named MobiFlight event... I guess. Then fall through and treat it as any other custom named action event.
eventName = "MobiFlight." + p.Label;
}
// Check for known/imported type, which may have special formatting applied to the name
else if (actId == PluginActions.SetKnownSimEvent && _pluginConfig.TryGetImportedSimEventIdFromSelector(eventName, out var cleanEventName)) {
eventName = cleanEventName;
}

Enum eventId;
// dynamically added event actions have no mappings, the ActionEventType.Id is the SimEventClientId
Expand Down

0 comments on commit 9ffe09e

Please sign in to comment.