Skip to content

Example for sending events #3

@keukenrol

Description

@keukenrol

Hi,

I’m currently working with the MobiFlight WASM Module, where I’ve successfully implemented a hardware interface for the G1000. Button presses and rotary encoder inputs are transmitted to MSFS using MobiFlight events, as defined in the legacy events.txt file. These are triggered using code similar to the following:
sm = SimConnect() Sk3 = Event(b'MobiFlight.AS1000_MFD_SOFTKEYS_3', sm) Sk3() sm.exit()
I’m now attempting to transition to the MSFSPythonSimConnectMobiflightExtension, but I’m encountering difficulties in fully implementing functionality. Specifically, it’s unclear how to send events using this module, as the available examples only demonstrate reading and writing variables.
Could you please clarify how event transmission is handled in this extension, or point me to relevant documentation or examples?
Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions