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.
4.1 KiB
4.1 KiB
Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of keepachangelog.com.
Unreleased
Added
- Client events are now implemented through
SimConnect::subscribe_to_client_event
,SimConnect::unsubscribe_from_client_event
andSimConnect::unsubscribe_from_all_client_events
. subscribe_to_client_events.rs
example has been added.SimConnectError::EventAlreadySubscribedTo
andSimConnectError::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 typeSimConnectError::EventAlreadySubscribedTo
instead ofSimConnectError::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 toSimConnectError::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.
v0.2.2 - 2023-02-22
Changed
- Updated to MSFS SDK v0.20.5.0.
SimConnect::get_next_dispatch
now takes a&mut self
in order to be able to clean up requests that have returned all the results they ever will.
Fixed
SimConnect::request_facilities_list
calls now automatically clean up the request after all the data is received.
v0.2.1 - 2022-10-29
Added
#[derive(PartialEq)]
has been added toCondition
,DataType
,FacilityType
,NotificationGroup
,Period
,ViewType
,ClientEvent
,SystemEventRequest
andSystemEvent
.#[derive(Eq)]
has been added toCondition
,DataType
,FacilityType
,NotificationGroup
,Period
,ViewType
,ClientEvent
andSystemEventRequest
.
Changed
- The GitHub repository has been renamed from
mihai-dinculescu/simconnect-sdk
tomihai-dinculescu/simconnect-sdk-rs
.
v0.2.0 - 2022-10-29
Added
Notification::SystemEvent
,SystemEventRequest
andSystemEvent
have been added. System Events can be subscribed to by usingSimConnect::subscribe_to_system_event
and unsubscribed from by usingSimConnect::unsubscribe_from_system_event
.
Changed
Notification::Event
has been renamed toNotification::ClientEvent
.Event
has been renamed toClientEvent
and marked asnon_exhaustive
.
v0.1.3 - 2022-10-24
Changed
SimConnect::get_next_dispatch
will now return an error of typeSimConnectError::UnimplementedMessageType
instead of panicking on unrecognized notification types.SimConnect::get_next_dispatch
will now return an error of typeSimConnectError::SimConnectException
instead ofNotification::Exception
.SimConnectError::SimConnectUnrecognizedEvent
has been renamed toSimConnectError::UnimplementedEventType
.#[non_exhaustive]
has been added to theSimConnectError
andNotification
enums.- The tracing information has been adjusted to be at the
info
anddebug
levels instead ofinfo
.
v0.1.2 - 2022-10-22
Added
Condition
,DataType
,FacilityType
andPeriod
now deriveDebug
.
Fixed
- Docs.rs build should now pass. Take 2.
v0.1.1 - 2022-10-21
Changed
- The docs and README files have been improved.
Fixed
- Docs.rs build should now pass.