The SimConnect_ClearInputGroup function is used to remove all the input events from a specified input group object.

 

Syntax
HRESULT SimConnect_ClearInputGroup(
    HANDLE  hSimConnect,
    SIMCONNECT_INPUT_GROUP_ID  GroupID
    );

 

Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
GroupIDSpecifies the ID of the client defined input group that is to have all its events removed.Integer

 

Return Values

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

Return valueDescription
S_OKThe function succeeded.
E_FAILThe function failed.

 

Example
static enum INPUT_ID {
    INPUT_1,
    };
static enum EVENT_ID {
    EVENT_1,
    };
hr = SimConnect_MapClientEventToSimEvent(hSimConnect, EVENT_1, "parking_brakes");
hr = SimConnect_MapInputEventToClientEvent(hSimConnect, INPUT_1, "a+B", EVENT_1);
      ....
hr = SimConnect_ClearInputGroup(hSimConnect, INPUT_1);

 

Remarks

Use this function to permanently delete an input group. Use the SimConnect_SetInputGroupState function to temporarily suspend input group notifications.