示例#1
0
文件: FT5336.cs 项目: rte-se/emul8
 public void Reset()
 {
     IRQ.Unset();
     currentReturnValue = null;
     lastWriteRegister = 0;
     for(ushort i = 0; i < touchedPoints.Length; ++i)
     {
         touchedPoints[i] = new TouchedPoint
         {
             Type = PointType.Reserved,
             X = 0,
             Y = 0,
             Id = i
         };
     }
 }
示例#2
0
文件: FT5x06.cs 项目: rte-se/emul8
 public FT5x06 (Machine machine, int maxPoints = 5)
 {
     this.machine = machine;
     maxSupportedPoints = maxPoints;
     points = new TouchedPoint[maxSupportedPoints];
     for (ushort i = 0; i< points.Length; ++i) {
         points [i] = new TouchedPoint ()
         {
             Type=PointType.Reserved,
             X = 0,
             Y = 0,
             Id = i
         };
     }
     IRQ = new GPIO ();
     Reset ();
 }