Merge pull request #14204 from mogemimi/fix-naming-typos

Fix naming typos
This commit is contained in:
pandamicro 2015-10-22 10:25:07 +08:00
commit 6925e423e3
3 changed files with 16 additions and 16 deletions

View File

@ -106,7 +106,7 @@ public class Cocos2dxEditBox extends EditText {
private final int kKeyboardReturnTypeGo = 4; private final int kKeyboardReturnTypeGo = 4;
private int mInputFlagConstraints; private int mInputFlagConstraints;
private int mInputModeContraints; private int mInputModeConstraints;
private int mMaxLength; private int mMaxLength;
//OpenGL view scaleX //OpenGL view scaleX
@ -146,7 +146,7 @@ public class Cocos2dxEditBox extends EditText {
} }
public void setMultilineEnabled(boolean flag){ public void setMultilineEnabled(boolean flag){
this.mInputModeContraints |= InputType.TYPE_TEXT_FLAG_MULTI_LINE; this.mInputModeConstraints |= InputType.TYPE_TEXT_FLAG_MULTI_LINE;
} }
public void setReturnType(int returnType) { public void setReturnType(int returnType) {
@ -176,32 +176,32 @@ public class Cocos2dxEditBox extends EditText {
switch (inputMode) { switch (inputMode) {
case kEditBoxInputModeAny: case kEditBoxInputModeAny:
this.mInputModeContraints = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE; this.mInputModeConstraints = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE;
break; break;
case kEditBoxInputModeEmailAddr: case kEditBoxInputModeEmailAddr:
this.mInputModeContraints = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS; this.mInputModeConstraints = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS;
break; break;
case kEditBoxInputModeNumeric: case kEditBoxInputModeNumeric:
this.mInputModeContraints = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED; this.mInputModeConstraints = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED;
break; break;
case kEditBoxInputModePhoneNumber: case kEditBoxInputModePhoneNumber:
this.mInputModeContraints = InputType.TYPE_CLASS_PHONE; this.mInputModeConstraints = InputType.TYPE_CLASS_PHONE;
break; break;
case kEditBoxInputModeUrl: case kEditBoxInputModeUrl:
this.mInputModeContraints = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI; this.mInputModeConstraints = InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI;
break; break;
case kEditBoxInputModeDecimal: case kEditBoxInputModeDecimal:
this.mInputModeContraints = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL | InputType.TYPE_NUMBER_FLAG_SIGNED; this.mInputModeConstraints = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL | InputType.TYPE_NUMBER_FLAG_SIGNED;
break; break;
case kEditBoxInputModeSingleLine: case kEditBoxInputModeSingleLine:
this.mInputModeContraints = InputType.TYPE_CLASS_TEXT; this.mInputModeConstraints = InputType.TYPE_CLASS_TEXT;
break; break;
default: default:
break; break;
} }
this.setInputType(this.mInputModeContraints | this.mInputFlagConstraints); this.setInputType(this.mInputModeConstraints | this.mInputFlagConstraints);
} }
@ -247,6 +247,6 @@ public class Cocos2dxEditBox extends EditText {
break; break;
} }
this.setInputType(this.mInputFlagConstraints | this.mInputModeContraints); this.setInputType(this.mInputFlagConstraints | this.mInputModeConstraints);
} }
} }

View File

@ -49,7 +49,7 @@
CMMotionManager *_motionManager; CMMotionManager *_motionManager;
} }
+ (id) sharedAccelerometerDispather; + (id) sharedAccelerometerDispatcher;
- (id) init; - (id) init;
- (void) setAccelerometerEnabled: (bool) isEnabled; - (void) setAccelerometerEnabled: (bool) isEnabled;
- (void) setAccelerometerInterval:(float) interval; - (void) setAccelerometerInterval:(float) interval;
@ -60,7 +60,7 @@
static CCAccelerometerDispatcher* s_pAccelerometerDispatcher; static CCAccelerometerDispatcher* s_pAccelerometerDispatcher;
+ (id) sharedAccelerometerDispather + (id) sharedAccelerometerDispatcher
{ {
if (s_pAccelerometerDispatcher == nil) { if (s_pAccelerometerDispatcher == nil) {
s_pAccelerometerDispatcher = [[self alloc] init]; s_pAccelerometerDispatcher = [[self alloc] init];
@ -177,12 +177,12 @@ int Device::getDPI()
void Device::setAccelerometerEnabled(bool isEnabled) void Device::setAccelerometerEnabled(bool isEnabled)
{ {
[[CCAccelerometerDispatcher sharedAccelerometerDispather] setAccelerometerEnabled:isEnabled]; [[CCAccelerometerDispatcher sharedAccelerometerDispatcher] setAccelerometerEnabled:isEnabled];
} }
void Device::setAccelerometerInterval(float interval) void Device::setAccelerometerInterval(float interval)
{ {
[[CCAccelerometerDispatcher sharedAccelerometerDispather] setAccelerometerInterval:interval]; [[CCAccelerometerDispatcher sharedAccelerometerDispatcher] setAccelerometerInterval:interval];
} }
typedef struct typedef struct

View File

@ -29,7 +29,7 @@ class Cocos2dRenderer
public: public:
Cocos2dRenderer(int width, int height, float dpi, Cocos2dRenderer(int width, int height, float dpi,
Windows::Graphics::Display::DisplayOrientations orientation, Windows::Graphics::Display::DisplayOrientations orientation,
Windows::UI::Core::CoreDispatcher^ dispathcer, Windows::UI::Xaml::Controls::Panel^ panel); Windows::UI::Core::CoreDispatcher^ dispatcher, Windows::UI::Xaml::Controls::Panel^ panel);
~Cocos2dRenderer(); ~Cocos2dRenderer();
void Draw(GLsizei width, GLsizei height, float dpi, Windows::Graphics::Display::DisplayOrientations orientation); void Draw(GLsizei width, GLsizei height, float dpi, Windows::Graphics::Display::DisplayOrientations orientation);
void QueuePointerEvent(cocos2d::PointerEventType type, Windows::UI::Core::PointerEventArgs^ args); void QueuePointerEvent(cocos2d::PointerEventType type, Windows::UI::Core::PointerEventArgs^ args);