示例#1
0
 public void RaiseTouch(int x, int y, TouchMessages which, DateTime time) => Application.Current.OnEvent(new TouchEvent()
 {
     Time = time, EventMessage = (byte)which, Touches = new[] { new TouchInput()
                                                                {
                                                                    X = x, Y = y
                                                                } }
 });
        public void RaiseTouch(int x, int y, TouchMessages which, DateTime time)
        {
            TouchEvent ev = new TouchEvent {
                Time         = time,
                EventMessage = (byte)which
            };

            TouchInput[] inputArray1 = new TouchInput[1];
            TouchInput   input1      = new TouchInput {
                X = x,
                Y = y
            };

            inputArray1[0] = input1;
            ev.Touches     = inputArray1;
            Application.Current.OnEvent(ev);
        }