CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode Input_AddModifierParameter ( CPHOBJECT const  hInput,
CPCHAR8 const *const  utf8Name,
CPUINT16 const  wMsgNum,
CPHOBJECT const  hIndexList,
CPUINT16 const  wMidPointValue,
CPCHAR8 const *const  utf8LabelMin,
CPCHAR8 const *const  utf8LabelMidPoint,
CPCHAR8 const *const  utf8LabelMax,
DataTypes const  preferredDataType,
CPUINT16 const  wGroup,
ModifierInformationProfiles const  informationProfiles,
ControllerTypes const  preferredControllerType,
CPUINT32 const  dwParameterUserData,
CPHOBJECT *const  phParameter 
)

Add a Modifier parameter.

Note
Don't forget to set the IOC_Explorable capability to the owner input in order to allow parameters exploration and remote control.
Parameters
[in]hInputInput handle
[in]utf8Namethe parameter's name
[in]wMsgNummessage number (see Modifiers)
[in]hIndexListhandle of the related Index List, or CPHOBJECT_NULL if the parameter is not indexed.
[in]wMidPointValuethe middle point value. Usually 0x8000
[in]utf8LabelMinthe label for min position
[in]utf8LabelMidPointthe label for middle position
[in]utf8LabelMaxthe label for max position
[in]preferredDataTypethe preferred data type if any. Use DT_Knob16 by default.
[in]wGroupthe parameter's group. Parameters having the same group number (>0) are physically attached.
[in]informationProfilescombination of optional information profiles. See ModifierProfiles
[in]preferredControllerTypethe preferred controller type for this parameter, without the CT_Msg* part. See ModifierInformationProfiles
[in]dwParameterUserDataA 32 bit user data associated to the returned parameter handle. This data will be passed back to the application in parameter notifications.
[out]phParameterPointer to the handle of the new parameter, or CPHOBJECT_NULL in case of error
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Warning
This function can only be called in CopperLan context. This means in the pseudo task CPDoProcess(), in notification handlers or in asynchronous return handlers and not in SystemDoProcess() for instance.