Hi Guys,
Have a issue to transmit client events.
In the managed SimConnect Library 0.12.0, the function TransmitClientEvent() takes UInteger data as event data.
Public Sub TransmitClientEvent(ObjectID As UInteger, EventID As [Enum], dwData As UInteger, GroupID As [Enum], Flags As SIMCONNECT_EVENT_FLAG)
But in the documentation the events have a range from -16383 up to 16383
And that seems to be the truth because in my VB .Net example I can set the throttle - but the range is from 50% to 100%
Same for the rudder. If I send 0 it is in the middle and by 16383 the rudder is fully set to right.
Any idea, how to overwrite the wrong definition of the function? Or how to force the compiler to accept negative values and send the MSB?
Seems to be a VB .Net issue because in C++ the function takes a DWORD so it is possible to send negative values.
SIMCONNECTAPI SimConnect_TransmitClientEvent(HANDLE hSimConnect, SIMCONNECT_OBJECT_ID ObjectID, SIMCONNECT_CLIENT_EVENT_ID EventID, DWORD dwData, SIMCONNECT_NOTIFICATION_GROUP_ID GroupID, SIMCONNECT_EVENT_FLAG Flags);
I am grateful for any help.
Have a issue to transmit client events.
In the managed SimConnect Library 0.12.0, the function TransmitClientEvent() takes UInteger data as event data.
Public Sub TransmitClientEvent(ObjectID As UInteger, EventID As [Enum], dwData As UInteger, GroupID As [Enum], Flags As SIMCONNECT_EVENT_FLAG)
But in the documentation the events have a range from -16383 up to 16383
KEY_AXIS_RUDDER_SET | AXIS_RUDDER_SET | Sets rudder position (-16383 - +16383) |
KEY_AXIS_ELEV_TRIM_SET | AXIS_ELEV_TRIM_SET | Sets elevator trim position (-16383 - +16383) |
And that seems to be the truth because in my VB .Net example I can set the throttle - but the range is from 50% to 100%
Same for the rudder. If I send 0 it is in the middle and by 16383 the rudder is fully set to right.
Any idea, how to overwrite the wrong definition of the function? Or how to force the compiler to accept negative values and send the MSB?
Seems to be a VB .Net issue because in C++ the function takes a DWORD so it is possible to send negative values.
SIMCONNECTAPI SimConnect_TransmitClientEvent(HANDLE hSimConnect, SIMCONNECT_OBJECT_ID ObjectID, SIMCONNECT_CLIENT_EVENT_ID EventID, DWORD dwData, SIMCONNECT_NOTIFICATION_GROUP_ID GroupID, SIMCONNECT_EVENT_FLAG Flags);
I am grateful for any help.