diff --git a/build/cocos2d_tests.xcodeproj/project.pbxproj b/build/cocos2d_tests.xcodeproj/project.pbxproj index a92f5bfe5f..31ff531727 100644 --- a/build/cocos2d_tests.xcodeproj/project.pbxproj +++ b/build/cocos2d_tests.xcodeproj/project.pbxproj @@ -441,8 +441,6 @@ 1AC35C0818CECF0C00F37B72 /* MouseTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9618CECF0B00F37B72 /* MouseTest.cpp */; }; 1AC35C0918CECF0C00F37B72 /* IntervalTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9918CECF0B00F37B72 /* IntervalTest.cpp */; }; 1AC35C0A18CECF0C00F37B72 /* IntervalTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9918CECF0B00F37B72 /* IntervalTest.cpp */; }; - 1AC35C0B18CECF0C00F37B72 /* KeyboardTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9C18CECF0B00F37B72 /* KeyboardTest.cpp */; }; - 1AC35C0C18CECF0C00F37B72 /* KeyboardTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35A9C18CECF0B00F37B72 /* KeyboardTest.cpp */; }; 1AC35C0F18CECF0C00F37B72 /* LabelTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AA218CECF0C00F37B72 /* LabelTest.cpp */; }; 1AC35C1018CECF0C00F37B72 /* LabelTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AA218CECF0C00F37B72 /* LabelTest.cpp */; }; 1AC35C1118CECF0C00F37B72 /* LabelTestNew.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AC35AA418CECF0C00F37B72 /* LabelTestNew.cpp */; }; @@ -1543,8 +1541,6 @@ 1AC35A9718CECF0B00F37B72 /* MouseTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MouseTest.h; sourceTree = ""; }; 1AC35A9918CECF0B00F37B72 /* IntervalTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IntervalTest.cpp; sourceTree = ""; }; 1AC35A9A18CECF0B00F37B72 /* IntervalTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntervalTest.h; sourceTree = ""; }; - 1AC35A9C18CECF0B00F37B72 /* KeyboardTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KeyboardTest.cpp; sourceTree = ""; }; - 1AC35A9D18CECF0B00F37B72 /* KeyboardTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KeyboardTest.h; sourceTree = ""; }; 1AC35AA218CECF0C00F37B72 /* LabelTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; path = LabelTest.cpp; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.cpp; }; 1AC35AA318CECF0C00F37B72 /* LabelTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LabelTest.h; sourceTree = ""; }; 1AC35AA418CECF0C00F37B72 /* LabelTestNew.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LabelTestNew.cpp; sourceTree = ""; }; @@ -2240,7 +2236,6 @@ 1AC35A9218CECF0B00F37B72 /* FontTest */, 1AC35A9518CECF0B00F37B72 /* InputTest */, 1AC35A9818CECF0B00F37B72 /* IntervalTest */, - 1AC35A9B18CECF0B00F37B72 /* KeyboardTest */, 1AC35AA118CECF0B00F37B72 /* LabelTest */, 1AC35AA618CECF0C00F37B72 /* LayerTest */, 1AC35AA918CECF0C00F37B72 /* MenuTest */, @@ -2890,15 +2885,6 @@ path = IntervalTest; sourceTree = ""; }; - 1AC35A9B18CECF0B00F37B72 /* KeyboardTest */ = { - isa = PBXGroup; - children = ( - 1AC35A9C18CECF0B00F37B72 /* KeyboardTest.cpp */, - 1AC35A9D18CECF0B00F37B72 /* KeyboardTest.h */, - ); - path = KeyboardTest; - sourceTree = ""; - }; 1AC35AA118CECF0B00F37B72 /* LabelTest */ = { isa = PBXGroup; children = ( @@ -4731,7 +4717,6 @@ 1AC35C3B18CECF0C00F37B72 /* PerformanceTouchesTest.cpp in Sources */, 29080D8F191B595E0066F8DF /* CocoStudioGUITest.cpp in Sources */, 1AC35B3D18CECF0C00F37B72 /* Bug-422.cpp in Sources */, - 1AC35C0B18CECF0C00F37B72 /* KeyboardTest.cpp in Sources */, 1AC35BF518CECF0C00F37B72 /* HttpClientTest.cpp in Sources */, 1AC35B4F18CECF0C00F37B72 /* ClickAndMoveTest.cpp in Sources */, 29080DCF191B595E0066F8DF /* UISliderTest.cpp in Sources */, @@ -4912,7 +4897,6 @@ 29080DA2191B595E0066F8DF /* GUIEditorTest.cpp in Sources */, 29080D94191B595E0066F8DF /* CustomImageTest.cpp in Sources */, 1AC35B3E18CECF0C00F37B72 /* Bug-422.cpp in Sources */, - 1AC35C0C18CECF0C00F37B72 /* KeyboardTest.cpp in Sources */, 29080DAC191B595E0066F8DF /* UIFocusTest.cpp in Sources */, 1AC35BF618CECF0C00F37B72 /* HttpClientTest.cpp in Sources */, 29080DA6191B595E0066F8DF /* UIButtonTest_Editor.cpp in Sources */, diff --git a/tests/cpp-tests/Android.mk b/tests/cpp-tests/Android.mk index 0a6a8eeda8..cedc1f75aa 100644 --- a/tests/cpp-tests/Android.mk +++ b/tests/cpp-tests/Android.mk @@ -129,7 +129,6 @@ Classes/FileUtilsTest/FileUtilsTest.cpp \ Classes/FontTest/FontTest.cpp \ Classes/InputTest/MouseTest.cpp \ Classes/IntervalTest/IntervalTest.cpp \ -Classes/KeyboardTest/KeyboardTest.cpp \ Classes/LabelTest/LabelTest.cpp \ Classes/LabelTest/LabelTestNew.cpp \ Classes/LayerTest/LayerTest.cpp \ diff --git a/tests/cpp-tests/CMakeLists.txt b/tests/cpp-tests/CMakeLists.txt index d97cdac83c..b515c3835b 100644 --- a/tests/cpp-tests/CMakeLists.txt +++ b/tests/cpp-tests/CMakeLists.txt @@ -124,7 +124,6 @@ set(SAMPLE_SRC Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp Classes/FontTest/FontTest.cpp Classes/IntervalTest/IntervalTest.cpp - Classes/KeyboardTest/KeyboardTest.cpp Classes/InputTest/MouseTest.cpp Classes/LabelTest/LabelTest.cpp Classes/LabelTest/LabelTestNew.cpp diff --git a/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp b/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp deleted file mode 100644 index 10b2eaebf1..0000000000 --- a/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include "KeyboardTest.h" - -KeyboardTest::KeyboardTest() -{ - auto s = Director::getInstance()->getWinSize(); - auto label = Label::createWithTTF("Keyboard Test", "fonts/arial.ttf", 28); - addChild(label, 0); - label->setPosition( Vec2(s.width/2, s.height-50) ); - - auto listener = EventListenerKeyboard::create(); - listener->onKeyPressed = CC_CALLBACK_2(KeyboardTest::onKeyPressed, this); - listener->onKeyReleased = CC_CALLBACK_2(KeyboardTest::onKeyReleased, this); - - _eventDispatcher->addEventListenerWithSceneGraphPriority(listener, this); - - // create a label to display the tip string - _label = Label::createWithTTF("Please press any key and see console log...", "fonts/arial.ttf", 22); - _label->setPosition(Vec2(s.width / 2, s.height / 2)); - addChild(_label, 0); - - _label->retain(); -} - -KeyboardTest::~KeyboardTest() -{ - _label->release(); -} - -void KeyboardTest::onKeyPressed(EventKeyboard::KeyCode keyCode, Event* event) -{ - log("Key with keycode %d pressed", keyCode); -} - -void KeyboardTest::onKeyReleased(EventKeyboard::KeyCode keyCode, Event* event) -{ - log("Key with keycode %d released", keyCode); -} - -void KeyboardTestScene::runThisTest() -{ - auto layer = new KeyboardTest(); - addChild(layer); - - Director::getInstance()->replaceScene(this); - layer->release(); -} - diff --git a/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.h b/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.h deleted file mode 100644 index 6492df7107..0000000000 --- a/tests/cpp-tests/Classes/KeyboardTest/KeyboardTest.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef _KEYBOARD_TEST_H_ -#define _KEYBOARD_TEST_H_ - -#include "cocos2d.h" -#include "../testBasic.h" - -class KeyboardTest : public Layer -{ -public: - KeyboardTest(); - ~KeyboardTest(); - - void onKeyPressed(EventKeyboard::KeyCode keyCode, Event* event); - void onKeyReleased(EventKeyboard::KeyCode keyCode, Event* event); - -private: - Label* _label; -}; - -class KeyboardTestScene : public TestScene -{ -public: - virtual void runThisTest(); -}; - - -#endif diff --git a/tests/cpp-tests/Classes/controller.cpp b/tests/cpp-tests/Classes/controller.cpp index afcc61248c..519a049d7e 100644 --- a/tests/cpp-tests/Classes/controller.cpp +++ b/tests/cpp-tests/Classes/controller.cpp @@ -68,7 +68,6 @@ Controller g_aTestNames[] = { { "FileUtils", []() { return new FileUtilsTestScene(); } }, { "Fonts", []() { return new FontTestScene(); } }, { "Interval", [](){return new IntervalTestScene(); } }, - { "Keyboard", []() { return new KeyboardTestScene(); } }, { "Node: Clipping", []() { return new ClippingNodeTestScene(); } }, { "Node: Draw", [](){return new DrawPrimitivesTestScene();} }, { "Node: Label - New API", [](){return new AtlasTestSceneNew(); } }, diff --git a/tests/cpp-tests/Classes/tests.h b/tests/cpp-tests/Classes/tests.h index 7ed638fce9..1a552f9bbc 100644 --- a/tests/cpp-tests/Classes/tests.h +++ b/tests/cpp-tests/Classes/tests.h @@ -32,7 +32,6 @@ #include "Box2DTest/Box2dTest.h" #include "Box2DTestBed/Box2dView.h" #include "EffectsAdvancedTest/EffectsAdvancedTest.h" -#include "KeyboardTest/KeyboardTest.h" #include "InputTest/MouseTest.h" #include "PerformanceTest/PerformanceTest.h" #include "ZwoptexTest/ZwoptexTest.h" diff --git a/tests/cpp-tests/proj.win32/cpp-tests.vcxproj b/tests/cpp-tests/proj.win32/cpp-tests.vcxproj index f309005911..237d58b5ac 100644 --- a/tests/cpp-tests/proj.win32/cpp-tests.vcxproj +++ b/tests/cpp-tests/proj.win32/cpp-tests.vcxproj @@ -170,7 +170,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(Ou - @@ -264,7 +263,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(Ou - @@ -292,7 +290,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(Ou - @@ -354,7 +351,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(Ou - @@ -450,7 +446,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(Ou - @@ -478,7 +473,6 @@ xcopy /Y /Q "$(ProjectDir)..\..\..\external\websockets\prebuilt\win32\*.*" "$(Ou - diff --git a/tests/cpp-tests/proj.win32/cpp-tests.vcxproj.filters b/tests/cpp-tests/proj.win32/cpp-tests.vcxproj.filters index b3b2ea21a9..50a8aae63b 100644 --- a/tests/cpp-tests/proj.win32/cpp-tests.vcxproj.filters +++ b/tests/cpp-tests/proj.win32/cpp-tests.vcxproj.filters @@ -76,9 +76,6 @@ {6eeb2da8-4ecb-4602-9ac5-80caabe39ee6} - - {34e82723-7a60-4bed-ba19-de427c04d212} - {a786a2de-3545-4fdc-9884-5a8c68bf8eb8} @@ -115,9 +112,6 @@ {1cf546eb-abc6-4b66-a85e-66a68f82b536} - - {0a4490ab-a3f5-4ccf-9b5d-ce03d80d4004} - {897838bb-90e6-492d-adcb-e719415c37b0} @@ -244,9 +238,6 @@ {a83cb042-e3d6-4d3b-a4f6-30a4b3fcb3e9} - - {8d7d37cd-5cc2-4a7d-9bd2-7b5c928adbb5} - {8e8124bd-adb2-4a8f-8727-9868a9c42d80} @@ -423,9 +414,6 @@ Classes\EffectsAdvancedTest - - Classes\KeypadTest - Classes\CocosDenshionTest @@ -507,9 +495,6 @@ Classes\TextureCacheTest - - Classes\AccelerometerTest - Classes\ExtensionsTest @@ -666,9 +651,6 @@ Classes\PhysicsTest - - Classes\KeyboardTest - Classes\InputTest @@ -953,9 +935,6 @@ Classes\EffectsAdvancedTest - - Classes\KeypadTest - Classes\CocosDenshionTest @@ -1036,10 +1015,6 @@ Classes\TextureCacheTest - - - Classes\AccelerometerTest - Classes\ExtensionsTest @@ -1367,9 +1342,6 @@ Classes\PhysicsTest - - Classes\KeyboardTest - Classes\InputTest diff --git a/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj b/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj index 19843f104e..b29642acdf 100644 --- a/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj +++ b/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj @@ -183,7 +183,6 @@ - @@ -268,8 +267,6 @@ - - @@ -328,7 +325,6 @@ - @@ -477,8 +473,6 @@ - - diff --git a/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj.filters b/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj.filters index b774d3ff8c..e17eaefc0b 100644 --- a/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj.filters +++ b/tests/cpp-tests/proj.wp8-xaml/TestCpp/TestCppComponent/TestCppComponent.vcxproj.filters @@ -4,9 +4,6 @@ {93d0a037-2d39-405e-bcbd-1fc145864722} - - {363b8049-7ead-47e9-87a4-54937a9dd336} - {9152809d-3942-4fee-a9e7-4c80694c197e} @@ -208,12 +205,6 @@ {4987366e-5062-4719-bdeb-d098e0c1406c} - - {fb894f07-e61e-4094-aaf2-038ea1bb9250} - - - {2a93c1ef-7a60-417f-a140-ac144caf4271} - {fe4f901a-eec1-4f49-833b-fccf28979a65} @@ -321,9 +312,6 @@ Classes - - Classes\AccelerometerTest - Classes\ActionManagerTest @@ -567,12 +555,6 @@ Classes\IntervalTest - - Classes\KeyboardTest - - - Classes\KeypadTest - Classes\LabelTest @@ -741,9 +723,6 @@ Classes - - Classes\AccelerometerTest - Classes\ActionManagerTest @@ -1179,12 +1158,6 @@ Classes\IntervalTest - - Classes\KeyboardTest - - - Classes\KeypadTest - Classes\LabelTest diff --git a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj index 0108b08538..9eea016aad 100644 --- a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj +++ b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj @@ -214,7 +214,6 @@ - @@ -307,7 +306,6 @@ - @@ -334,7 +332,6 @@ - @@ -413,7 +410,6 @@ - @@ -508,7 +504,6 @@ - @@ -535,7 +530,6 @@ - diff --git a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters index 556e8a3efc..5bb18d7352 100644 --- a/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters +++ b/tests/cpp-tests/proj.wp8-xaml/cpp-testsComponent/cpp-testsComponent.vcxproj.filters @@ -73,9 +73,6 @@ {6eeb2da8-4ecb-4602-9ac5-80caabe39ee6} - - {34e82723-7a60-4bed-ba19-de427c04d212} - {a786a2de-3545-4fdc-9884-5a8c68bf8eb8} @@ -112,9 +109,6 @@ {1cf546eb-abc6-4b66-a85e-66a68f82b536} - - {0a4490ab-a3f5-4ccf-9b5d-ce03d80d4004} - {897838bb-90e6-492d-adcb-e719415c37b0} @@ -241,9 +235,6 @@ {a83cb042-e3d6-4d3b-a4f6-30a4b3fcb3e9} - - {8d7d37cd-5cc2-4a7d-9bd2-7b5c928adbb5} - {8e8124bd-adb2-4a8f-8727-9868a9c42d80} @@ -417,9 +408,6 @@ Classes\EffectsAdvancedTest - - Classes\KeypadTest - Classes\CocosDenshionTest @@ -498,9 +486,6 @@ Classes\TextureCacheTest - - Classes\AccelerometerTest - Classes\ExtensionsTest @@ -645,9 +630,6 @@ Classes\PhysicsTest - - Classes\KeyboardTest - Classes\InputTest @@ -950,9 +932,6 @@ Classes\EffectsAdvancedTest - - Classes\KeypadTest - Classes\CocosDenshionTest @@ -1031,9 +1010,6 @@ Classes\TextureCacheTest - - Classes\AccelerometerTest - Classes\ExtensionsTest @@ -1352,9 +1328,6 @@ Classes\PhysicsTest - - Classes\KeyboardTest - Classes\InputTest