![]() M_oSimConnect.SetNotificationGroupPriority(GROUP_ID.GPS, SimConnect.SIMCONNECT_GROUP_PRIORITY_HIGHEST) Īnd then when I click a button I am sending an Event like this: ![]() ![]() M_oSimConnect.AddClientEventToNotificationGroup(GROUP_ID.GPS, EVENT_ID.GPS_PAGE_KNOB_INC, true) M_oSimConnect.AddClientEventToNotificationGroup(GROUP_ID.GPS, EVENT_ID.GPS_PAGE_KNOB_DEC, true) Register your groups m_oSimConnect.AddClientEventToNotificationGroup(GROUP_ID.GPS, EVENT_ID.GPS_MSG_BUTTON, true) M_oSimConnect.MapClientEventToSimEvent(EVENT_ID.GPS_PAGE_KNOB_DEC, "GPS_PAGE_KNOB_DEC") M_oSimConnect.MapClientEventToSimEvent(EVENT_ID.GPS_PAGE_KNOB_INC, "GPS_PAGE_KNOB_INC") Map your client events to the ones that are known by the sim m_oSimConnect.MapClientEventToSimEvent(EVENT_ID.GPS_MSG_BUTTON, "GPS_MSG_BUTTON") I am using the SimConnect Demo that demonstrates how to read data from the sim and I enhanced it with the part where I am sending events.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |