Commit Graph

18 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
85e5341599 Announce v0.2.2 2023-02-22 19:11:21 +00:00
Mihai Dinculescu
93ab001d48 Automatically clean up request_facilities_list requests once completed 2023-02-22 18:41:01 +00:00
Mihai Dinculescu
e074d708d8 Updated to MSFS SDK v0.20.5.0 2023-02-09 10:34:45 +00:00
Mihai Dinculescu
63086c5b9b Announce v0.2.1 2022-10-29 15:52:37 +01:00
Mihai Dinculescu
0a05fd38c9 Derive and for most enums 2022-10-29 15:51:49 +01:00
Mihai Dinculescu
8cc948816d Rename the github repo to simconnect-sdk-rs 2022-10-29 15:46:15 +01:00
Mihai Dinculescu
708f6b2ac5 Announce v0.2.0 2022-10-29 14:27:54 +01:00
Mihai Dinculescu
2809917a93 Add suport for system events 2022-10-29 13:48:00 +01:00
Mihai Dinculescu
ad52d7f050 Announce v0.1.3 2022-10-24 20:24:17 +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
b34174496f Announce v0.1.2 2022-10-22 10:25:01 +01:00
Mihai Dinculescu
44f3766588 Derive for several enums 2022-10-22 10:18:33 +01:00
Mihai Dinculescu
34411bf63e Fix the docs.rs build take 2 2022-10-22 10:18:26 +01:00
Mihai Dinculescu
e49650e563 Announce v0.1.1 2022-10-21 15:30:32 +01:00
Mihai Dinculescu
8ea0c17f99 Fix the docs.rs build and improve the documentation 2022-10-21 14:59:22 +01:00
Mihai Dinculescu
ea9236f3f6 Prepare for publishing 2022-10-20 21:46:38 +01:00