Commit Graph

12 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
63086c5b9b Announce v0.2.1 2022-10-29 15:52:37 +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
b34174496f Announce v0.1.2 2022-10-22 10:25:01 +01:00
Mihai Dinculescu
e49650e563 Announce v0.1.1 2022-10-21 15:30:32 +01:00
Mihai Dinculescu
6be70c8566 Add support for facilities 2022-10-15 22:51:57 +01:00
Mihai Dinculescu
307b83ea95 Improve the examples 2022-10-12 23:27:19 +01:00
Mihai Dinculescu
9b7e3b97db Add the derive proc macro 2022-10-10 20:22:16 +01:00
Mihai Dinculescu
7f89887508 Proc macro preparation 2022-10-09 09:38:53 +01:00