private void btnI1_Click(object sender, EventArgs e) { engine.BeginInput(); var gyroHandler = new ProjectMotion.Input.MotionInputHandler(onGyroUpdateMethod); engine.Input.RegisterHandler(0xf001, gyroHandler); }
void btnStartRead_Click() { engine.BeginInput(); var gyroUpdateDelegate = new ProjectMotion.Input.MotionInputHandler(OnGyroUpdate); engine.Input.RegisterHandler(ProjectMotion.Input.Gyro.id, gyroUpdateDelegate); }