Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
TouchScriptData Struct Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ TouchScriptData()

TouchScriptData ( InputPhase inActionType,
void * inNativeObject,
Event * evt )
inline

Constructor of TouchScriptData.

@lua NA

Member Data Documentation

◆ actionType

InputPhase actionType

The PointerEvent::EventCode type.

@lua NA

◆ nativeObject

void* nativeObject

A scripting backend may resolve the callback through its own callback registry.

@lua NA

◆ event

Event* event

event information,it is useless for Lua.

@lua NA


The documentation for this struct was generated from the following file:
  • ScriptSupport.h