|
Axmol 3.0.0-89d6d9a
|
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 (KeyboardEvent::KeyCode inActionType, void *inNativeObject) | |
| Constructor of KeypadScriptData. | |
Public Attributes | |
| KeyboardEvent::KeyCode | actionType |
| The specific type of KeyboardEvent::KeyCode. | |
| void * | nativeObject |
| A scripting backend may resolve the callback through its own callback registry. | |
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.
|
inline |
Constructor of KeypadScriptData.
@lua NA
| KeyboardEvent::KeyCode actionType |
The specific type of KeyboardEvent::KeyCode.
@lua NA
| void* nativeObject |
A scripting backend may resolve the callback through its own callback registry.
@lua NA