SimConnect_EnumerateInputEventParams

The SimConnect_EnumerateInputEventParams function is used to retrieve a list of all parameters from an input event.

 

Syntax
HRESULT SimConnect_EnumerateInputEvents(
    HANDLE hSimConnect,
    SIMCONNECT_DATA_REQUEST_ID RequestID
)

 

Parameters
Parameter Description Type
hSimConnect Handle to a SimConnect object. String
RequestID

The ID that will identify the current request in the response event

 

Return Values

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return value Description
S_OK The function succeeded.
E_FAIL The function failed.

 

Remarks

This function generate a SIMCONNECT_RECV_ENUMERATE_INPUT_EVENT_PARAMS response where the Value member will contain a string. The string will contain a list of associated input event parameters separated by a semi-colon ";".

 

Example

The following basic example of use is from the DA62, for the AS1000_MID_COM_1_Mic_Position instrument, with the HashID "11675888408130357189":

SIMCONNECT_RECV_ENUMERATE_INPUT_EVENT_PARAMS:
{
Hash = 11675888408130357189;
Value = ";FLOAT64"
}

If an instrument has two arguments (in this example a FLOAT64 and a STRING) then you would have to do the following:

SIMCONNECT_RECV_ENUMERATE_INPUT_EVENT_PARAMS:
{
Hash = <Hash>;
Value = ";FLOAT64;char[256]"
}

Then you would use the SetInputEvent function as follow:

unsigned char byteValues[2048] = "";
// Create your value
value = "<myFloatValueInBytes><myStringValueInBytes>;"
m_simConnectObject.SetInputEvent(<Hash>, value);