mirror of https://github.com/axmolengine/axmol.git
Remove hard codes
This commit is contained in:
parent
b4585fa2e2
commit
4c9fb311da
|
@ -281,12 +281,12 @@ void EditBoxImplWin::openKeyboard()
|
|||
{
|
||||
ScriptEngineManager::getInstance()->getScriptEngine()->sendEvent(&event);
|
||||
}
|
||||
memset(data.eventName,0,64*sizeof(char));
|
||||
strncpy(data.eventName,"ended",64);
|
||||
memset(data.eventName,0,sizeof(data.eventName));
|
||||
strncpy(data.eventName,"ended",sizeof(data.eventName));
|
||||
event.data = (void*)&data;
|
||||
ScriptEngineManager::getInstance()->getScriptEngine()->sendEvent(&event);
|
||||
memset(data.eventName,0,64*sizeof(char));
|
||||
strncpy(data.eventName,"return",64);
|
||||
memset(data.eventName,0,sizeof(data.eventName));
|
||||
strncpy(data.eventName,"return",sizeof(data.eventName));
|
||||
event.data = (void*)&data;
|
||||
ScriptEngineManager::getInstance()->getScriptEngine()->sendEvent(&event);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue