DXScript::bindKey

Description
Bind a script and funciton to the specified key. int DXScript::bindKey(const char _key, const char* _filePath, const char *_functionName)

Returns
Zero for success, nonzero for failure. For more detail of a failure, this function returns a member of the eScriptReturns enumeration.

Example
DXScript *dxscr = new DXScript; dxscr->bindKey('W', "scripts/rebindKey1", "main");