Esempio n. 1
0
        private void sendSimEvent(CLIENT_EVENTS clientEvent, uint data = 0)
        {
            if (simconnect == null)
            {
                return;
            }

            simconnect.TransmitClientEvent(0, clientEvent, data, NOTIFICATION_GROUPS.GROUP0, SIMCONNECT_EVENT_FLAG.GROUPID_IS_PRIORITY);
        }
Esempio n. 2
0
        private void addSimEvent(CLIENT_EVENTS clientEvent, bool notify = false)
        {
            string simEvent = clientEvent.ToString();

            simconnect.MapClientEventToSimEvent(clientEvent, simEvent);
            if (notify == true)
            {
                simconnect.AddClientEventToNotificationGroup(NOTIFICATION_GROUPS.GROUP0, clientEvent, false);
            }
        }