From 9319dd70020a3dca1cf7076aa68b555a3d0644e2 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Mon, 8 May 2017 15:32:40 +0800 Subject: [PATCH] fix DeviceMotion bug for fireball/issues/5679 --- native/tools/tojs/cocos2dx.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/native/tools/tojs/cocos2dx.ini b/native/tools/tojs/cocos2dx.ini index 757033d415..68c880c82a 100644 --- a/native/tools/tojs/cocos2dx.ini +++ b/native/tools/tojs/cocos2dx.ini @@ -29,10 +29,12 @@ replace_headers=SimpleAudioEngine.h::audio/include/SimpleAudioEngine.h,CCProtect # what classes to produce code for. You can use regular expressions here. When testing the regular # expression, it will be enclosed in "^$", like this: "^Menu*$". -classes = New.* Sprite SpriteBatchNode SpriteFrame SpriteFrameCache Scene Node Director Layer.* Menu.* Touch PointArray Particle.* Label.* Atlas.* TextureCache.* Texture2D ParallaxNode TileMap.* TMX.* RenderTexture Set SimpleAudioEngine Scheduler DrawNode FileUtils$ GLProgram GLProgramCache Application ClippingNode MotionStreak TextFieldTTF GLViewProtocol GLView Component ComponentContainer SAXParser Event(?!.*(Physics).*).* Device Configuration ProtectedNode GLProgramState Image AsyncTaskPool Properties Material RenderState Pass ActionManager Action FiniteTimeAction ActionInterval ActionInstant ActionEase Move.* Rotate.* Blink.* Tint.* Sequence Repeat.* FadeIn FadeTo FadeOut Ease.* Scale.* Spawn ReverseTime FlipX FlipY Delay.* Skew.* JumpTo JumpBy Place.* Show.* ToggleVisibility.* RemoveSelf Hide Cardinal.* CatmullRom.* CallFunc CallFuncN Follow.* Bezier.* CardinalSpline.* Speed TargetedAction +classes = New.* Sprite SpriteBatchNode SpriteFrame SpriteFrameCache Scene Node Director Layer.* Menu.* Touch PointArray Particle.* Label.* Atlas.* TextureCache.* Texture2D ParallaxNode TileMap.* TMX.* RenderTexture Set SimpleAudioEngine Scheduler DrawNode FileUtils$ GLProgram GLProgramCache Application ClippingNode MotionStreak TextFieldTTF GLViewProtocol GLView Component ComponentContainer SAXParser Event(?!.*(Physics).*).* Device Configuration ProtectedNode GLProgramState Image AsyncTaskPool Properties Material RenderState Pass ActionManager Action FiniteTimeAction ActionInterval ActionInstant ActionEase Move.* Rotate.* Blink.* Tint.* Sequence Repeat.* FadeIn FadeTo FadeOut Ease.* Scale.* Spawn ReverseTime FlipX FlipY Delay.* Skew.* JumpTo JumpBy Place.* Show.* ToggleVisibility.* RemoveSelf Hide Cardinal.* CatmullRom.* CallFunc CallFuncN Follow.* Bezier.* CardinalSpline.* Speed TargetedAction Acceleration classes_need_extend = Node Layer.* Sprite SpriteBatchNode SpriteFrame Menu MenuItem.* Scene DrawNode Component MotionStreak ParticleBatchNode ParticleSystem TextFieldTTF RenderTexture TileMapAtlas TMXLayer TMXTiledMap TMXMapInfo ProgressTimer ParallaxNode Label.* GLProgram .*Action.* Move.* Rotate.* Blink.* Tint.* Sequence Repeat.* Fade.* Ease.* Scale.* Spawn ReverseTime Flip.* Delay.* Skew.* Jump.* Place.* Show.* Progress.* Follow.* Bezier.* Hide CallFunc CallFuncN +field = Acceleration::[x y z timestamp] + # what should we skip? in the format ClassName::[function function] # ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also # regular expressions, they will not be surrounded by "^$". If you want to skip a whole class, just