|
Axmol 3.0.0-89d6d9a
|
For Lua, the TouchScriptData is used to find the Lua function pointer by the nativeObject, then call the Lua function by push touch data and actionType converted to string type into the Lua stack as the parameters when the touch event is triggered. More...
#include <ScriptSupport.h>
Public Member Functions | |
| TouchScriptData (InputPhase inActionType, void *inNativeObject, Event *evt) | |
| Constructor of TouchScriptData. | |
Public Attributes | |
| InputPhase | actionType |
| The PointerEvent::EventCode type. | |
| void * | nativeObject |
| A scripting backend may resolve the callback through its own callback registry. | |
| Event * | event |
| event information,it is useless for Lua. | |
For Lua, the TouchScriptData is used to find the Lua function pointer by the nativeObject, then call the Lua function by push touch data and actionType converted to string type into the Lua stack as the parameters when the touch event is triggered.
|
inline |
Constructor of TouchScriptData.
@lua NA
| InputPhase actionType |
The PointerEvent::EventCode type.
@lua NA
| void* nativeObject |
A scripting backend may resolve the callback through its own callback registry.
@lua NA
| Event* event |
event information,it is useless for Lua.
@lua NA