Go to the source code of this file.
|
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_createControl (ControlManagerHandle manager, ControlId type, ControlHandle *controlHandle) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_addControl (ControlManagerHandle manager, ControlHandle instance, UInt32 *index) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_registerControl (ControlManagerHandle manager, const LEG_InteractionsDescriptor *descPtr, ControlId *controlId) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_parameterId (ControlManagerHandle manager, ControlId controlType, const char *parameterName, ParameterId *out) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_getControls (ControlManagerHandle manager, ControlId controlType, ControlHandle **controls, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_peekControls (ControlManagerHandle manager, ControlId controlType, ControlHandle **controls, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_addCallback (ControlManagerHandle manager, ControlId controlType, C_ControlCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_removeCallback (ControlManagerHandle manager, ControlId controlType, C_ControlCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_addInterest (ControlManagerHandle manager, ControlId controlType) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_removeInterest (ControlManagerHandle manager, ControlId controlType) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_getType (ControlHandle controlInstance, ControlId *out) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_getSource (ControlHandle controlInstance, ClientId *out) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_getTarget (ControlHandle controlInstance, ClientId *out) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_setSource (ControlHandle controlInstance, ClientId source) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_setTarget (ControlHandle controlInstance, ClientId target) |
| |
Control callback function prototype
Get source client id of the control
- Parameters
-
| [in] | controlInstance | The control instance |
| [out] | clientId | Output the source cclient id of the control instance |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get target client id of the control
- Parameters
-
| [in] | controlInstance | The control instance |
| [out] | clientId | Output the source cclient id of the control instance |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Get the control type of the control instance
- Parameters
-
| [in] | controlInstance | The control instance |
| [out] | controlId | Output the type identifier of the control instance |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Set source client id of the control instance
- Parameters
-
| [in] | controlInstance | The control instance, both input and output parameter |
| [in] | clientId | The source client id |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Set target client id of the control instance
- Parameters
-
| [in] | controlInstance | The control instance, both input and output parameter |
| [in] | clientId | The target client id |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Add and register control callback for the specified control type
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
| [in] | func | A callback function to add |
| [in] | usr | User data of the callback function |
- See Also
- C_ControlCallback
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::ControlManager::addControlCallback().
Add a control interaction
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | instance | The control instance to add |
| [out] | index | Output control index used by Legion platform |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Add a control interest
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Create a control object
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | type | The control type indentifier |
| [out] | controlHandle | Return control handle created |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::ControlManager::createControl().
Get one type of controls from current frame
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
| [out] | controls | Return the input type of controls from current frame |
| [out] | count | Total number of controls returned |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::ControlManager::getControls().
Get parameter id associated with input control type and parameter name
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
| [in] | paramterName | A parameter name of input control type |
- Returns
- ParameterId Parameter ID of the control type & parameter name
Get one type of controls from next frame
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
| [out] | controls | Return the input type of controls from next frame |
| [out] | count | Total number of controls returned |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::ControlManager::peekControls().
Register a control interaction descriptor
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | descPtr | The interaction descriptor |
| [out] | controlId | Output control identifier of the control registry |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Remove and unregister control callback for the specified control type
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
| [in] | func | A callback function to remove |
| [in] | usr | User data of the callback function |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure
Referenced by Legion::ControlManager::removeControlCallback().
Remove a control interest
- Parameters
-
| [in] | manager | The handle of control manager |
| [in] | controlType | An unique identifier for the control type |
- Returns
- LEG_ReturnCode 0 indicates success, non 0 error code indicates failure