Axmol 3.0.0-89d6d9a
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 (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.

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.

Constructor & Destructor Documentation

◆ KeypadScriptData()

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

Constructor of KeypadScriptData.

@lua NA

Member Data Documentation

◆ actionType

The specific type of KeyboardEvent::KeyCode.

@lua NA

◆ nativeObject

void* nativeObject

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

@lua NA


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