Cocos2d-x  4.0.0
Public Member Functions | Public Attributes | List of all members
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...

Public Member Functions

 TouchScriptData (EventTouch::EventCode inActionType, void *inNativeObject, Touch *inTouch, Event *evt)
 Constructor of TouchScriptData.
 

Public Attributes

EventTouch::EventCode actionType
 The EventTouch::EventCode type.
 
void * nativeObject
 For Lua, it Used to find the Lua function pointer by the ScriptHandlerMgr.
 
Touchtouch
 touch information.
 
Eventevent
 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.

NA

Constructor & Destructor Documentation

TouchScriptData ( EventTouch::EventCode  inActionType,
void *  inNativeObject,
Touch inTouch,
Event evt 
)
inline

Constructor of TouchScriptData.

NA NA

Member Data Documentation

The EventTouch::EventCode type.

NA NA

void* nativeObject

For Lua, it Used to find the Lua function pointer by the ScriptHandlerMgr.

NA NA

Touch* touch

touch information.

it would be in x,y form to push into the Lua stack.

NA NA

Event* event

event information,it is useless for Lua.

NA NA


The documentation for this struct was generated from the following file: