Beispiel #1
0
        private void btnI1_Click(object sender, EventArgs e)
        {
            engine.BeginInput();
            var gyroHandler = new ProjectMotion.Input.MotionInputHandler(onGyroUpdateMethod);

            engine.Input.RegisterHandler(0xf001, gyroHandler);
        }
Beispiel #2
0
    void btnStartRead_Click()
    {
        engine.BeginInput();
        var gyroUpdateDelegate = new ProjectMotion.Input.MotionInputHandler(OnGyroUpdate);

        engine.Input.RegisterHandler(ProjectMotion.Input.Gyro.id, gyroUpdateDelegate);
    }