mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7467 from ntotani/fix-lua-accelerometer
fix enabled to interval
This commit is contained in:
commit
54da8be54f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue