Python-SimConnect icon indicating copy to clipboard operation
Python-SimConnect copied to clipboard

Listen to an event

Open omrygin opened this issue 5 years ago • 2 comments

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.

omrygin avatar Oct 25 '20 19:10 omrygin

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.

odwdinc avatar Oct 25 '20 20:10 odwdinc

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...

rzimin avatar Jan 05 '22 18:01 rzimin