Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[cocos2d] Fix the Is* properties for CCLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneDelcroix committed Mar 12, 2013
1 parent 6650632 commit 474dc04
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions cocos2d/binding/ApiDefinition.cs
Expand Up @@ -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")]
Expand All @@ -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")]
Expand Down

0 comments on commit 474dc04

Please sign in to comment.