⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

 
Axmol Engine 2.4.0-ce063c5
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
KeypadScriptData Struct Reference

For Lua, the KeypadScriptData is used to find the Lua function pointer by the nativeObject, then call the Lua function by push the actionType converted to string type into the Lua stack as the parameters when the Keypad event is triggered. More...

#include <ScriptSupport.h>

Public Member Functions

 KeypadScriptData (EventKeyboard::KeyCode inActionType, void *inNativeObject)
 Constructor of KeypadScriptData.
 

Public Attributes

EventKeyboard::KeyCode actionType
 The specific type of EventKeyboard::KeyCode.
 
void * nativeObject
 For Lua, it Used to find the Lua function pointer by the ScriptHandlerMgr.
 

Detailed Description

For Lua, the KeypadScriptData is used to find the Lua function pointer by the nativeObject, then call the Lua function by push the actionType converted to string type into the Lua stack as the parameters when the Keypad event is triggered.

@js NA

Constructor & Destructor Documentation

◆ KeypadScriptData()

KeypadScriptData ( EventKeyboard::KeyCode inActionType,
void * inNativeObject )
inline

Constructor of KeypadScriptData.

@lua NA @js NA

Member Data Documentation

◆ actionType

The specific type of EventKeyboard::KeyCode.

@lua NA @js NA

◆ nativeObject

void* nativeObject

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

@lua NA @js NA


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