From 474dc044b428bac7f5554aefb3f86356b19d473a Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Tue, 12 Mar 2013 13:20:06 +0100 Subject: [PATCH] [cocos2d] Fix the Is* properties for CCLayer --- cocos2d/binding/ApiDefinition.cs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/cocos2d/binding/ApiDefinition.cs b/cocos2d/binding/ApiDefinition.cs index e50275d8..35a3ed69 100644 --- a/cocos2d/binding/ApiDefinition.cs +++ b/cocos2d/binding/ApiDefinition.cs @@ -1290,8 +1290,8 @@ interface CCLayer : CCStandardTouchDelegate, CCTargetedTouchDelegate { [Export ("registerWithTouchDispatcher")] void RegisterWithTouchDispatcher (); - [Export ("isTouchEnabled")] - bool IsTouchEnabled { get; set; } + [Export ("touchEnabled")] + bool TouchEnabled { [Bind ("isTouchEnabled")]get; set; } #if !MONOMAC [Export ("touchMode")] @@ -1300,16 +1300,20 @@ interface CCLayer : CCStandardTouchDelegate, CCTargetedTouchDelegate { [Export ("touchPriority")] int TouchPriority { get; set; } - [Export ("isAccelerometerEnabled")] - bool IsAccelerometerEnabled { get; set; } + [Export ("accelerometerEnabled")] + bool AccelerometerEnabled { [Bind ("isAccelerometerEnabled")]get; set; } + + [Export ("setAccelerometerInterval:")] + void SetAccelerometerInterval (float interval); + #if MONOMAC - [Export ("isKeyboardEnabled")] - bool IsKeyboardEnabled { get; set; } + [Export ("keyboardEnabled")] + bool KeyboardEnabled { [Bind ("isKeyboardEnabled")]get; set; } - [Export ("isMouseEnabled")] - bool IsMouseEnabled { get; set; } + [Export ("mouseEnabled")] + bool MouseEnabled { [Bind ("isMouseEnabled")]get; set; } [Export ("mouseDelegatePriority")]