Commit Graph

11 Commits

Author SHA1 Message Date
Mihai Dinculescu
d89fa524c2 Rework events and add proper support for client events
Added

- Client events are now implemented through `SimConnect::subscribe_to_client_event`, `SimConnect::unsubscribe_from_client_event` and `SimConnect::unsubscribe_from_all_client_events`.
- `subscribe_to_client_events.rs` example has been added.
- `SimConnectError::EventAlreadySubscribedTo` and `SimConnectError::EventNotSubscribedTo` error variants have been added.

Changed

- A second call to `SimConnect::subscribe_to_system_event` for the same event will now return an error of type `SimConnectError::EventAlreadySubscribedTo` instead of `SimConnectError::SimConnectException`.
- The call to `SimConnect::unsubscribe_from_system_event` is now a NOOP when the system event is not subscribed to.
- `SimConnectError::UnimplementedMessageType` has been renamed to `SimConnectError::UnimplementedNotification`.

Removed

- `SimConnect::register_event` has been replaced by the new client event functions.
- `NotificationGroup` has been removed in favor of an internally managed notification group.
2023-05-01 19:13:30 +01:00
Mihai Dinculescu
93ab001d48 Automatically clean up request_facilities_list requests once completed 2023-02-22 18:41:01 +00:00
Mihai Dinculescu
2809917a93 Add suport for system events 2022-10-29 13:48:00 +01:00
Mihai Dinculescu
f47a597557 Improve error handling 2022-10-24 19:45:28 +01:00
Mihai Dinculescu
7186d61467 Tweak tracing information 2022-10-24 19:28:27 +01:00
Mihai Dinculescu
ea9236f3f6 Prepare for publishing 2022-10-20 21:46:38 +01:00
Mihai Dinculescu
4ac94cdb96 Add support for String 2022-10-20 15:42:51 +01:00
Mihai Dinculescu
a868d09b6e Cleanup the docs 2022-10-19 11:14:51 +01:00
Mihai Dinculescu
a46e9860a3 Add CI 2022-10-19 09:18:12 +01:00
Mihai Dinculescu
0db9847030 Add unsubscribe to objects 2022-10-18 21:56:07 +01:00
Mihai Dinculescu
a2002e02cd Add unsubscribe to facilities 2022-10-17 22:44:02 +01:00