Пример #1
0
 // Token: 0x06002F54 RID: 12116
 // RVA: 0x00133028 File Offset: 0x00131228
 private void method_2(Class568.Struct64 struct64_0)
 {
     Thread.Sleep(50);
     Point point = Class800.smethod_14();
     if (this.point_0.X == 0)
     {
         if (point.X < 200)
         {
             this.point_0.X = struct64_0.int_0;
             this.point_1.X = point.X;
         }
     }
     else if (point.X > 600)
     {
         this.point_2.X = struct64_0.int_0;
         this.point_3.X = point.X;
     }
     if (this.point_0.Y == 0)
     {
         if (point.Y < 200)
         {
             this.point_0.Y = struct64_0.int_1;
             this.point_1.Y = point.Y;
         }
     }
     else if (point.Y > 600)
     {
         this.point_2.Y = struct64_0.int_1;
         this.point_3.Y = point.Y;
     }
     if (this.point_2.X > 0 && this.point_2.Y > 0)
     {
         this.bool_0 = true;
         this.vector2_1.X = (float)(this.point_2.X - this.point_0.X) / (float)(this.point_3.X - this.point_1.X);
         this.vector2_1.Y = (float)(this.point_2.Y - this.point_0.Y) / (float)(this.point_3.Y - this.point_1.Y);
         this.vector2_0.X = (float)this.point_0.X - (float)this.point_1.X * this.vector2_1.X;
         this.vector2_0.Y = (float)this.point_0.Y - (float)this.point_1.Y * this.vector2_1.Y;
         Class341.string_0 = string.Concat(new string[]
         {
             this.vector2_1.X.ToString(Class115.numberFormatInfo_0),
             ":",
             this.vector2_1.Y.ToString(Class115.numberFormatInfo_0),
             ":",
             this.vector2_0.X.ToString(Class115.numberFormatInfo_0),
             ":",
             this.vector2_0.Y.ToString(Class115.numberFormatInfo_0)
         });
         Class723.smethod_1("Touchscreen Calibration Complete!", 2000);
     }
 }
Пример #2
0
 private static unsafe extern int EloGetTouch(Class568.Struct64* pStruct64_0, bool bool_4, Class568.Enum91 enum91_0, ref uint uint_0);