Merge pull request #7467 from ntotani/fix-lua-accelerometer

fix enabled to interval
This commit is contained in:
minggo 2014-07-17 10:23:45 +08:00
commit 54da8be54f
1 changed files with 1 additions and 1 deletions

View File

@ -1234,7 +1234,7 @@ static int lua_cocos2dx_Layer_setAccelerometerInterval(lua_State* L)
goto tolua_lerror; goto tolua_lerror;
#endif #endif
double interval = tolua_tonumber(L, 2, 0); double interval = tolua_tonumber(L, 2, 0);
Device::setAccelerometerEnabled(interval); Device::setAccelerometerInterval(interval);
return 0; return 0;
} }