Exemplo n.º 1
0
        //virtual void accelerometer(UIAccelerometer* accelerometer, CCAcceleration* acceleration);

        public override void KeyPressed(Keys key)
        {
            var result = Convert(new Keys[] { key });

            if (result.Length > 0)
            {
                m_test.Keyboard(result[0]);
            }
        }
Exemplo n.º 2
0
        //virtual void accelerometer(UIAccelerometer* accelerometer, CCAcceleration* acceleration);

        void onKeyPressed(CCEventKeyboard keyEvent)
        {
            var result = Convert(keyEvent);

            if (result.Length > 0)
            {
                m_test.Keyboard(result[0]);
            }
        }