Example #1
0
        public CubeWrapper(MathMind app, Cube cube, char type)
        {
            mApp = app;
            mCube = cube;
            mCube.userData = this;
            mIndex = 0;
            mType = type;

            // Here we attach more event handlers for button and accelerometer actions.
            mCube.ButtonEvent += OnButton;
            mCube.TiltEvent += OnTilt;
            mCube.ShakeStartedEvent += OnShakeStarted;
            mCube.ShakeStoppedEvent += OnShakeStopped;
            mCube.FlipEvent += OnFlip;
        }
Example #2
0
        public CubeWrapper(MathMind app, Cube cube, char type)
        {
            mApp           = app;
            mCube          = cube;
            mCube.userData = this;
            mIndex         = 0;
            mType          = type;

            // Here we attach more event handlers for button and accelerometer actions.
            mCube.ButtonEvent       += OnButton;
            mCube.TiltEvent         += OnTilt;
            mCube.ShakeStartedEvent += OnShakeStarted;
            mCube.ShakeStoppedEvent += OnShakeStopped;
            mCube.FlipEvent         += OnFlip;
        }