Пример #1
0
        static void TouchDown(object sender, InteropTouchEventArgs e)
        {
            NativeTouchDevice device = null;

            if (!deviceDictionary.Keys.Contains(e.Id))
            {
                device = new NativeTouchDevice(e);
                deviceDictionary.Add(e.Id, device);
            }

            if (device != null)
            {
                device.TouchDown(e);
            }
        }
Пример #2
0
        static void TouchMove(object sender, InteropTouchEventArgs e)
        {
            int id = e.Id;

            if (!deviceDictionary.Keys.Contains(id))
            {
                TouchDown(sender, e);
            }

            NativeTouchDevice device = deviceDictionary[id];

            if (device != null)
            {
                device.TouchMove(e);
            }
        }