We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e71ae4 commit faa51c9Copy full SHA for faa51c9
src/lib.rs
@@ -81,6 +81,13 @@ impl SimConnector {
81
}
82
83
84
+ pub fn subcribe_to_system_event(&self, event_id: SIMCONNECT_CLIENT_EVENT_ID, event_name: &str) -> bool {
85
+ unsafe {
86
+ let result = SimConnect_SubscribeToSystemEvent(self.sim_connect_handle, event_id, as_c_string!(event_name));
87
+ return result == 0;
88
+ }
89
90
+
91
pub fn get_next_message(&self) -> Result<DispatchResult, &str> {
92
let mut data_buf: *mut SIMCONNECT_RECV = ptr::null_mut();
93
0 commit comments