Python-SimConnect
Python-SimConnect copied to clipboard
Listen to an event
Hi, Is it possible to create a listener to capture events triggered in the sim, not by a program? For example, listen for the event GEAR_TOGGLE when retracting gears using the in-sim lever.
This is a hard one, I know its posable see SPAD.neXt event recorder. However, the SimConnect.dll interface only show 2 Subscribe types. SubscribeToFacilitie This is some what working not fully tested. As was just updated in the last release of the MSFS 2020 sdk. Is used for updates about nearby Facilities. and SubscribeToSystemEvent This agen is some what working and has not seen any updates yet. Used for game state changes. Not sim events.
best to use the matching request and pool for data.
Up on this one. There is actually a way to subscribe to event from sim by using callback function...
We badly need to be able to use something like
SimConnect.MapClientEventToSimEvent SimConnect.AddClientEventToNotificationGroup
to be able to hunt for those ones...