Go to the source code of this file.
|
| LEGIONRUNTIME_DLL ControlHandle | legion_controlManager_createControl (ControlManagerHandle manager, ControlType type) |
| |
| LEGIONRUNTIME_DLL UInt32 | legion_controlManager_addControl (ControlManagerHandle manager, ControlHandle instance) |
| |
| LEGIONRUNTIME_DLL ControlType | legion_controlManager_registerControl (ControlManagerHandle manager, LEG_InteractionsDescriptor *descPtr) |
| |
| LEGIONRUNTIME_DLL ParameterId | legion_controlManager_parameterId (ControlManagerHandle manager, ControlType controlType, const char *parameterName) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_getControls (ControlManagerHandle manager, ControlType controlType, ControlHandle **controls, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_peekControls (ControlManagerHandle manager, ControlType controlType, ControlHandle **controls, UInt32 *count) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_addCallback (ControlManagerHandle manager, ControlType controlType, C_ControlCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_removeCallback (ControlManagerHandle manager, ControlType controlType, C_ControlCallback func, void *usr) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_addInterest (ControlManagerHandle manager, ControlType controlType) |
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_controlManager_removeInterest (ControlManagerHandle manager, ControlType controlType) |
| |
|
| LEGIONRUNTIME_DLL UInt32 | legion_control_getType (ControlHandle controlInstance) |
| | C API to get and set control paramter data Get control data from current frame. More...
|
| |
| LEGIONRUNTIME_DLL UInt16 | legion_control_getSource (ControlHandle controlInstance) |
| | C API to get and set control paramter data Get control data from current frame. More...
|
| |
| LEGIONRUNTIME_DLL UInt16 | legion_control_getTarget (ControlHandle controlInstance) |
| | C API to get and set control paramter data Get control data from current frame. More...
|
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_setSource (ControlHandle controlInstance, UInt16 source) |
| | C API to get and set control paramter data Get control data from current frame. More...
|
| |
| LEGIONRUNTIME_DLL LEG_ReturnCode | legion_control_setTarget (ControlHandle controlInstance, UInt16 targe) |
| | C API to get and set control paramter data Get control data from current frame. More...
|
| |
Control callback function prototype
C API to get and set control paramter data Get control data from current frame.
C API to get and set control paramter data Get control data from current frame.
C API to get and set control paramter data Get control data from current frame.
C API to get and set control paramter data Get control data from current frame.
C API to get and set control paramter data Get control data from current frame.
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 |
- Returns
- UInt32 Return an index used by Legion platform
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 |
- Returns
- ControlHandle Return control handle created
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 paramter name of input control type |
- Returns
- ParameterId Paramter 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 | Pointer to the interaction descriptor |
- Returns
- ControlType Return an unique identifier of the control registry
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