Пример #1
0
        public bool initWithEntryID(int entryId)
        {
			// Register Touch Event
			touchListener = new CCEventListenerTouchOneByOne();
			touchListener.IsSwallowTouches = true;

			touchListener.OnTouchBegan = onTouchBegan;
			touchListener.OnTouchMoved = onTouchMoved;
			touchListener.OnTouchEnded = onTouchEnded;

            AddEventListener(touchListener, -10);

			var keyboardListener = new CCEventListenerKeyboard ();
			keyboardListener.OnKeyPressed = onKeyPressed;
			keyboardListener.OnKeyReleased = onKeyReleased;

            AddEventListener(keyboardListener);



            m_entry = TestEntries.TestList[entryId];
            m_test = m_entry.CreateFcn();

            return true;
        }
Пример #2
0
        public bool initWithEntryID(int entryId)
        {
            // Register Touch Event
            touchListener = new CCEventListenerTouchOneByOne();
            touchListener.IsSwallowTouches = true;

            touchListener.OnTouchBegan = onTouchBegan;
            touchListener.OnTouchMoved = onTouchMoved;
            touchListener.OnTouchEnded = onTouchEnded;

            AddEventListener(touchListener, -10);

            var keyboardListener = new CCEventListenerKeyboard();

            keyboardListener.OnKeyPressed  = onKeyPressed;
            keyboardListener.OnKeyReleased = onKeyReleased;

            AddEventListener(keyboardListener);



            m_entry = TestEntries.TestList[entryId];
            m_test  = m_entry.CreateFcn();

            return(true);
        }
Пример #3
0
        public bool initWithEntryID(int entryId)
        {
            TouchEnabled    = true;
            KeyboardEnabled = true;

            ScheduleUpdate();

            m_entry = TestEntries.TestList[entryId];
            m_test  = m_entry.CreateFcn();

            return(true);
        }
Пример #4
0
        public bool initWithEntryID(int entryId)
        {
            TouchEnabled = true;
            KeyboardEnabled = true;

            ScheduleUpdate();

            m_entry = TestEntries.TestList[entryId];
            m_test = m_entry.CreateFcn();

            return true;
        }