SIMCONNECT_RECV_SUBSCRIBE_INPUT_EVENT
The SIMCONNECT_RECV_SUBSCRIBE_INPUT_EVENT structure is used to return the value of a subscribed input event.
Syntax
struct SIMCONNECT_RECV_SUBSCRIBE_INPUT_EVENT: public SIMCONNECT_RECV
{
UINT64 Hash;
SIMCONNECT_INPUT_EVENT_TYPE Type;
PVOID Value;
};
Members
Member | Description |
---|---|
Hash |
Hash ID that will identify the subscribed input event. |
Type |
One member of the SIMCONNECT_INPUT_EVENT_TYPE enumeration type. This is used to cast the Value to the correct type. |
Value |
The value of the requested input event, which should be cast to the correct format (float / string). |
Remarks
This struct will be the response to a call to SimConnect_SubscribeInputEvent
. The value stored in this struct must be cast on the client side in the correct format (as a float or a string, only). If it is a string, it can have a maximum length of 256 characters (including \0).
NOTE: In C#, the Value is an object array containing one uint
value. For details on how this should be handled please see this Note for C#.
See Also