From cd025158f62f0540ed1edc0f63d70825045e9e0d Mon Sep 17 00:00:00 2001 From: Naoyuki Totani Date: Wed, 16 Jul 2014 19:10:05 +0900 Subject: [PATCH] fix enabled to interval --- cocos/scripting/lua-bindings/manual/lua_cocos2dx_manual.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/scripting/lua-bindings/manual/lua_cocos2dx_manual.cpp b/cocos/scripting/lua-bindings/manual/lua_cocos2dx_manual.cpp index 1b2e2ff86a..b66fab6fb5 100644 --- a/cocos/scripting/lua-bindings/manual/lua_cocos2dx_manual.cpp +++ b/cocos/scripting/lua-bindings/manual/lua_cocos2dx_manual.cpp @@ -1234,7 +1234,7 @@ static int lua_cocos2dx_Layer_setAccelerometerInterval(lua_State* L) goto tolua_lerror; #endif double interval = tolua_tonumber(L, 2, 0); - Device::setAccelerometerEnabled(interval); + Device::setAccelerometerInterval(interval); return 0; }