MAK Legion 1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
c_controls.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
9 #pragma once
10 
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 
21 typedef void(*C_ControlCallback)(void* usr, ControlHandle* controls, UInt32 count);
22 
30 
38 
46 
53 LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_parameterId(ControlManagerHandle manager, ControlId controlType, const char* parameterName, ParameterId* out);
54 
62 LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_getControls(ControlManagerHandle manager, ControlId controlType, ControlHandle** controls, UInt32* count);
63 
71 LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_peekControls(ControlManagerHandle manager, ControlId controlType, ControlHandle** controls, UInt32* count);
72 
81 LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_addCallback(ControlManagerHandle manager, ControlId controlType, C_ControlCallback func, void* usr);
82 
90 LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_removeCallback(ControlManagerHandle manager, ControlId controlType, C_ControlCallback func, void* usr);
91 
98 
105 
106 
107 
113 LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_getType(ControlHandle controlInstance, ControlId* out);
114 
120 LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_getSource(ControlHandle controlInstance, ClientId* out);
121 
127 LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_getTarget(ControlHandle controlInstance, ClientId* out);
128 
134 LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_setSource(ControlHandle controlInstance, ClientId source);
135 
141 LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_setTarget(ControlHandle controlInstance, ClientId target);
142 
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_setSource(ControlHandle controlInstance, ClientId source)
LEG_ReturnCode
Definition: c_api.h:62
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_addCallback(ControlManagerHandle manager, ControlId controlType, C_ControlCallback func, void *usr)
unsigned int UInt32
Definition: c_api.h:54
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_peekControls(ControlManagerHandle manager, ControlId controlType, ControlHandle **controls, UInt32 *count)
void(* C_ControlCallback)(void *usr, ControlHandle *controls, UInt32 count)
Definition: c_controls.h:21
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)
unsigned long long ControlManagerHandle
Definition: c_api.h:25
unsigned int ParameterId
Definition: c_api.h:43
LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_getType(ControlHandle controlInstance, ControlId *out)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_createControl(ControlManagerHandle manager, ControlId type, ControlHandle *controlHandle)
unsigned int ControlId
Definition: c_api.h:45
LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_setTarget(ControlHandle controlInstance, ClientId target)
Definition: c_interactions.h:35
LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_getSource(ControlHandle controlInstance, ClientId *out)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_addInterest(ControlManagerHandle manager, ControlId controlType)
unsigned int ClientId
Definition: c_api.h:40
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_addControl(ControlManagerHandle manager, ControlHandle instance, UInt32 *index)
unsigned long long ControlHandle
Definition: c_api.h:29
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_getControls(ControlManagerHandle manager, ControlId controlType, ControlHandle **controls, UInt32 *count)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_control_getTarget(ControlHandle controlInstance, ClientId *out)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_removeCallback(ControlManagerHandle manager, ControlId controlType, C_ControlCallback func, void *usr)
LEGIONRUNTIME_DLL LEG_ReturnCode legion_controlManager_removeInterest(ControlManagerHandle manager, ControlId controlType)

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)